]> git.saurik.com Git - bison.git/commitdiff
(<SC_ESCAPED_CHARACTER>): Convert to unsigned char, so that negative
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 1 Jul 2002 08:36:37 +0000 (08:36 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 1 Jul 2002 08:36:37 +0000 (08:36 +0000)
chars don't collide with $.

src/scan-gram.l

index 1d3c0cfbe9d44d95578fe767ccff271978cb5215..b89ab688b107ad93811bb72df33aec906ada6c2e 100644 (file)
@@ -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);
       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;
       YY_OBS_FREE;
       yy_pop_state ();
       return ID;