From 6a31d1e02cabf8e25cbe339a7adb076eb8a46800 Mon Sep 17 00:00:00 2001 From: Haru Date: Mon, 1 Jun 2020 14:50:02 +0200 Subject: Fix a compiler warning in 32 bit builds Signed-off-by: Haru --- src/map/script.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/map/script.c') diff --git a/src/map/script.c b/src/map/script.c index 682e665b6..743a1779a 100644 --- a/src/map/script.c +++ b/src/map/script.c @@ -3692,8 +3692,8 @@ static int set_reg(struct script_state *st, struct map_session_data *sd, int64 n const char *str = (const char*)value; if (script->is_permanent_variable(name) && strlen(str) > SCRIPT_STRING_VAR_LENGTH) { - ShowError("script:set_reg: Value of variable %s is too long: %lu! Maximum is %d. Skipping...\n", - name, strlen(str), SCRIPT_STRING_VAR_LENGTH); + ShowError("script:set_reg: Value of variable %s is too long: %d! Maximum is %d. Skipping...\n", + name, (int)strlen(str), SCRIPT_STRING_VAR_LENGTH); if (st != NULL) { script->reportsrc(st); -- cgit v1.2.3-70-g09d2