mirror of
https://github.com/cc65/cc65.git
synced 2024-09-28 10:55:43 +00:00
fix gcc warning
This commit is contained in:
parent
39744f1bde
commit
b7af5ac438
@ -1112,8 +1112,8 @@ static StrBuf MakeLineFromTokens (TokNode* first)
|
|||||||
SB_AppendStr (&T, token_string);
|
SB_AppendStr (&T, token_string);
|
||||||
xfree (token_string);
|
xfree (token_string);
|
||||||
} else if (token->Tok == TOK_INTCON) {
|
} else if (token->Tok == TOK_INTCON) {
|
||||||
char ival[11]; // max size a long can be
|
char ival[12]; // max size a long can be
|
||||||
snprintf (ival, 11, "%d", token->IVal);
|
snprintf (ival, sizeof(ival), "%ld", token->IVal);
|
||||||
SB_AppendStr (&T, ival);
|
SB_AppendStr (&T, ival);
|
||||||
} else if ((token_string = GetTokenString (token)) != NULL)
|
} else if ((token_string = GetTokenString (token)) != NULL)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user