mirror of https://bitbucket.org/CPMADevs/cnq3
added a couple of explicit casts for Clang to keep quiet
This commit is contained in:
parent
4b131f258c
commit
96e4d2d7cb
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue