From: Paul Eggert Date: Mon, 1 Jul 2002 08:36:37 +0000 (+0000) Subject: (): Convert to unsigned char, so that negative X-Git-Tag: BISON-1_49b~94 X-Git-Url: https://git.saurik.com/bison.git/commitdiff_plain/e68d4575b309813a68fc57889b3ab8a20cc9aa96 (): Convert to unsigned char, so that negative chars don't collide with $. --- diff --git a/src/scan-gram.l b/src/scan-gram.l index 1d3c0cfb..b89ab688 100644 --- a/src/scan-gram.l +++ b/src/scan-gram.l @@ -294,7 +294,8 @@ blanks [ \t\f]+ YY_OBS_FINISH; yylval->symbol = symbol_get (last_string, *yylloc); symbol_class_set (yylval->symbol, token_sym, *yylloc); - symbol_user_token_number_set (yylval->symbol, last_string[1], *yylloc); + symbol_user_token_number_set (yylval->symbol, + (unsigned char) last_string[1], *yylloc); YY_OBS_FREE; yy_pop_state (); return ID;