summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;