From 183bbefa717ea98eecdd864535eac5126263b6bc Mon Sep 17 00:00:00 2001 From: /dev/humancontroller Date: Mon, 30 Jan 2017 02:19:35 +0100 Subject: fix some format specifiers in printf()-like function calls --- src/qcommon/parse.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/qcommon') diff --git a/src/qcommon/parse.c b/src/qcommon/parse.c index 78343385..60c165e9 100644 --- a/src/qcommon/parse.c +++ b/src/qcommon/parse.c @@ -2765,7 +2765,7 @@ static int Parse_Directive_eval(source_t *source) token.whitespace_p = source->scriptstack->script_p; token.endwhitespace_p = source->scriptstack->script_p; token.linescrossed = 0; - sprintf(token.string, "%d", abs(value)); + sprintf(token.string, "%ld", labs(value)); token.type = TT_NUMBER; token.subtype = TT_INTEGER|TT_LONG|TT_DECIMAL; Parse_UnreadSourceToken(source, &token); @@ -2812,7 +2812,7 @@ static int Parse_DollarDirective_evalint(source_t *source) token.whitespace_p = source->scriptstack->script_p; token.endwhitespace_p = source->scriptstack->script_p; token.linescrossed = 0; - sprintf(token.string, "%d", abs(value)); + sprintf(token.string, "%ld", labs(value)); token.type = TT_NUMBER; token.subtype = TT_INTEGER|TT_LONG|TT_DECIMAL; token.intvalue = value; -- cgit