]> git.xonotic.org Git - xonotic/gmqcc.git/blobdiff - lexer.c
Update doc/specification.tex
[xonotic/gmqcc.git] / lexer.c
diff --git a/lexer.c b/lexer.c
index 620e4b44fb52b78ac38f9ed8930c1dad86631896..42b21a1a6cd7de46bd45aa21b227cc412a4fbdec 100644 (file)
--- 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);
 }