]> de.git.xonotic.org Git - xonotic/gmqcc.git/blobdiff - parser.c
s/%d/%s/
[xonotic/gmqcc.git] / parser.c
index 76d3057738b155314cec0b77841c6b0837c29c4a..90d73bae931ec3c9ceb4ea531c008edd8fc2c353 100644 (file)
--- a/parser.c
+++ b/parser.c
@@ -227,7 +227,7 @@ static ast_value* parser_const_float_0(parser_t *parser)
 
 static ast_value* parser_const_float_neg1(parser_t *parser) {
     if (!parser->imm_float_neg_one)
-        parser->imm_float_zero = parser_const_float(parser, -1);
+        parser->imm_float_neg_one = parser_const_float(parser, -1);
     return parser->imm_float_neg_one;
 }
 
@@ -5554,7 +5554,7 @@ static bool parser_global_statement(parser_t *parser)
     }
     else
     {
-        parseerror(parser, "unexpected token: %s", parser->lex->tok.value);
+        parseerror(parser, "unexpected token: `%s`", parser->lex->tok.value);
         return false;
     }
     return true;