X-Git-Url: https://git.xonotic.org/?p=xonotic%2Fgmqcc.git;a=blobdiff_plain;f=lexer.c;h=42b21a1a6cd7de46bd45aa21b227cc412a4fbdec;hp=620e4b44fb52b78ac38f9ed8930c1dad86631896;hb=e11a17b40805b93e1e2ae80129c9d235b6d6119b;hpb=319783e873ce661bea8dfc318197591fb4deeb62 diff --git a/lexer.c b/lexer.c index 620e4b4..42b21a1 100644 --- a/lexer.c +++ b/lexer.c @@ -1485,6 +1485,6 @@ int lex_do(lex_file *lex) return (lex->tok.ttype = ch); } - lexerror(lex, "unknown token: `%d`", lex->tok.value); + lexerror(lex, "unknown token: `%s`", lex->tok.value); return (lex->tok.ttype = TOKEN_ERROR); }