summaryrefslogtreecommitdiff
path: root/src/qcommon/parse.c
diff options
context:
space:
mode:
author/dev/humancontroller <devhc@example.com>2017-01-30 02:19:35 +0100
committer/dev/humancontroller <devhc@example.com>2017-02-07 17:34:58 +0100
commit183bbefa717ea98eecdd864535eac5126263b6bc (patch)
tree2ca80f80397efb394ed18b1dd0d557a3cff82de6 /src/qcommon/parse.c
parent9c27fee0e01ce9ceb83622068acfc4033625fde3 (diff)
fix some format specifiers in printf()-like function calls
Diffstat (limited to 'src/qcommon/parse.c')
-rw-r--r--src/qcommon/parse.c4
1 files changed, 2 insertions, 2 deletions
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;