summaryrefslogtreecommitdiff
path: root/src/map
diff options
context:
space:
mode:
Diffstat (limited to 'src/map')
-rw-r--r--src/map/intif.cpp4
-rw-r--r--src/map/magic-interpreter-parser.ypp4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/map/intif.cpp b/src/map/intif.cpp
index a2f75c5..6c8edf5 100644
--- a/src/map/intif.cpp
+++ b/src/map/intif.cpp
@@ -418,7 +418,7 @@ int intif_parse_LoadStorage(int fd)
if (RFIFOW(fd, 2) - 8 != sizeof(struct storage))
{
if (battle_config.error_log)
- PRINTF("intif_parse_LoadStorage: data size error %d %d\n",
+ PRINTF("intif_parse_LoadStorage: data size error %d %zu\n",
RFIFOW(fd, 2) - 8, sizeof(struct storage));
return 1;
}
@@ -473,7 +473,7 @@ int intif_parse_PartyInfo(int fd)
if (RFIFOW(fd, 2) != sizeof(struct party) + 4)
{
if (battle_config.error_log)
- PRINTF("intif: party info : data size error %d %d %d\n",
+ PRINTF("intif: party info : data size error %d %d %zu\n",
RFIFOL(fd, 4), RFIFOW(fd, 2),
sizeof(struct party) + 4);
}
diff --git a/src/map/magic-interpreter-parser.ypp b/src/map/magic-interpreter-parser.ypp
index a8db8a4..dd62edf 100644
--- a/src/map/magic-interpreter-parser.ypp
+++ b/src/map/magic-interpreter-parser.ypp
@@ -819,7 +819,7 @@ expr_t *fun_expr(const char *name, int args_nr, expr_t **args, int line, int col
if (!fun) {
fail(line, column, "Unknown function `%s'\n", name);
} else if (strlen(fun->signature) != args_nr) {
- fail(line, column, "Incorrect number of arguments to function `%s': Expected %d, found %d\n", name, strlen(fun->signature), args_nr);
+ fail(line, column, "Incorrect number of arguments to function `%s': Expected %zu, found %d\n", name, strlen(fun->signature), args_nr);
fun = NULL;
}
@@ -932,7 +932,7 @@ effect_t *op_effect(char *name, int args_nr, expr_t **args, int line, int column
if (!op)
fail(line, column, "Unknown operation `%s'\n", name);
else if (strlen(op->signature) != args_nr) {
- fail(line, column, "Incorrect number of arguments to operation `%s': Expected %d, found %d\n", name, strlen(op->signature), args_nr);
+ fail(line, column, "Incorrect number of arguments to operation `%s': Expected %zu, found %d\n", name, strlen(op->signature), args_nr);
op = NULL;
}