From 756085f91d0f01c69550735cf2e60cae54d9c72a Mon Sep 17 00:00:00 2001 From: Ben Longbons Date: Sat, 6 Apr 2013 17:25:56 -0700 Subject: Native amd64 support --- src/map/intif.cpp | 4 ++-- src/map/magic-interpreter-parser.ypp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'src/map') 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; } -- cgit v1.2.3-60-g2f50