added a couple of explicit casts for Clang to keep quiet

This commit is contained in:
myT 2022-05-26 22:23:50 +02:00
parent 4b131f258c
commit 96e4d2d7cb
1 changed files with 2 additions and 2 deletions

View File

@ -2363,7 +2363,7 @@ int PC_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", (int)abs(value));
sprintf(token.string, "%d", (int)abs((int)value));
token.type = TT_NUMBER;
token.subtype = TT_INTEGER|TT_LONG|TT_DECIMAL;
PC_UnreadSourceToken(source, &token);
@ -2468,7 +2468,7 @@ int PC_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", (int)abs(value));
sprintf(token.string, "%d", (int)abs((int)value));
token.type = TT_NUMBER;
token.subtype = TT_INTEGER|TT_LONG|TT_DECIMAL;
#ifdef NUMBERVALUE