mirror of
https://bitbucket.org/CPMADevs/cnq3
synced 2024-11-10 06:31:48 +00:00
added a couple of explicit casts for Clang to keep quiet
This commit is contained in:
parent
4b131f258c
commit
96e4d2d7cb
1 changed files with 2 additions and 2 deletions
|
@ -2363,7 +2363,7 @@ int PC_Directive_eval(source_t *source)
|
||||||
token.whitespace_p = source->scriptstack->script_p;
|
token.whitespace_p = source->scriptstack->script_p;
|
||||||
token.endwhitespace_p = source->scriptstack->script_p;
|
token.endwhitespace_p = source->scriptstack->script_p;
|
||||||
token.linescrossed = 0;
|
token.linescrossed = 0;
|
||||||
sprintf(token.string, "%d", (int)abs(value));
|
sprintf(token.string, "%d", (int)abs((int)value));
|
||||||
token.type = TT_NUMBER;
|
token.type = TT_NUMBER;
|
||||||
token.subtype = TT_INTEGER|TT_LONG|TT_DECIMAL;
|
token.subtype = TT_INTEGER|TT_LONG|TT_DECIMAL;
|
||||||
PC_UnreadSourceToken(source, &token);
|
PC_UnreadSourceToken(source, &token);
|
||||||
|
@ -2468,7 +2468,7 @@ int PC_DollarDirective_evalint(source_t *source)
|
||||||
token.whitespace_p = source->scriptstack->script_p;
|
token.whitespace_p = source->scriptstack->script_p;
|
||||||
token.endwhitespace_p = source->scriptstack->script_p;
|
token.endwhitespace_p = source->scriptstack->script_p;
|
||||||
token.linescrossed = 0;
|
token.linescrossed = 0;
|
||||||
sprintf(token.string, "%d", (int)abs(value));
|
sprintf(token.string, "%d", (int)abs((int)value));
|
||||||
token.type = TT_NUMBER;
|
token.type = TT_NUMBER;
|
||||||
token.subtype = TT_INTEGER|TT_LONG|TT_DECIMAL;
|
token.subtype = TT_INTEGER|TT_LONG|TT_DECIMAL;
|
||||||
#ifdef NUMBERVALUE
|
#ifdef NUMBERVALUE
|
||||||
|
|
Loading…
Reference in a new issue