diff options
Diffstat (limited to 'Xenogears/compil.lex')
-rw-r--r-- | Xenogears/compil.lex | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Xenogears/compil.lex b/Xenogears/compil.lex index f6ceda8..7d221df 100644 --- a/Xenogears/compil.lex +++ b/Xenogears/compil.lex @@ -254,9 +254,10 @@ <I>"<Bare"\ +[[:xdigit:]]{1,2}">" { char str[5] = {'0', 'x', 0, 0, 0}; int d; - for (yytext += 6; *yytext == ' '; yytext++); - str[2] = *(yytext++); - str[3] = *(yytext++); + char * _yytext = yytext; + for (_yytext += 6; *_yytext == ' '; _yytext++); + str[2] = *(_yytext++); + str[3] = *(_yytext++); sscanf(str, "%i", &d); if (d > 255) { fprintf(stderr, "Error: Bare number too important: %i\n", d); |