]> git.rm.cloudns.org Git - xonotic/gmqcc.git/commitdiff
pragma code: signed correctness
authorWolfgang Bumiller <blub@speed.at>
Wed, 2 Jan 2013 14:20:07 +0000 (15:20 +0100)
committerWolfgang Bumiller <blub@speed.at>
Wed, 2 Jan 2013 14:20:07 +0000 (15:20 +0100)
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);