]> git.xonotic.org Git - xonotic/gmqcc.git/blobdiff - lexer.c
Got rid of all the memleaks. We can now merge with master.
[xonotic/gmqcc.git] / lexer.c
diff --git a/lexer.c b/lexer.c
index 30ac500ca0b95be47e26d6df7d28fbfd885bee53..5e0414b5b9f075868ed9cf45852977e7240b6ed1 100644 (file)
--- a/lexer.c
+++ b/lexer.c
@@ -485,7 +485,7 @@ unroll:
     if (command) {
         vec_pop(command);
         while (vec_size(command)) {
-            lex_ungetch(lex, vec_last(command));
+            lex_ungetch(lex, (unsigned char)vec_last(command));
             vec_pop(command);
         }
         vec_free(command);
@@ -494,7 +494,7 @@ unroll:
     if (command) {
         vec_pop(command);
         while (vec_size(command)) {
-            lex_ungetch(lex, vec_last(command));
+            lex_ungetch(lex, (unsigned char)vec_last(command));
             vec_pop(command);
         }
         vec_free(command);
@@ -503,7 +503,7 @@ unroll:
     if (pragma) {
         vec_pop(pragma);
         while (vec_size(pragma)) {
-            lex_ungetch(lex, vec_last(pragma));
+            lex_ungetch(lex, (unsigned char)vec_last(pragma));
             vec_pop(pragma);
         }
         vec_free(pragma);