From: Wolfgang Bumiller Date: Wed, 2 Jan 2013 14:20:07 +0000 (+0100) Subject: pragma code: signed correctness X-Git-Tag: before-library~389 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=0d839bd13872ef5ebd9bc47e5c094b431c870c78;p=xonotic%2Fgmqcc.git pragma code: signed correctness --- diff --git a/lexer.c b/lexer.c index 30ac500..5e0414b 100644 --- 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);