Fix bug in code for pragma with double brackets
authorLaurent Bessard
Mon, 22 Oct 2012 23:08:54 +0200
changeset 637 1b6f337222e0
parent 636 dd57e63bdc3d
child 638 049748e9410a
Fix bug in code for pragma with double brackets
stage1_2/iec_flex.ll
--- a/stage1_2/iec_flex.ll	Mon Oct 22 17:44:40 2012 +0200
+++ b/stage1_2/iec_flex.ll	Mon Oct 22 23:08:54 2012 +0200
@@ -849,7 +849,7 @@
 	/* Any other pragma we find, we just pass it up to the syntax parser...   */
 	/* Note that the <body_state> state is exclusive, so we have to include it here too. */
 {pragma}	{/* return the pragmma without the enclosing '{' and '}' */
-         uint cut = yytext[1]=='{'?2:1;
+         int cut = yytext[1]=='{'?2:1;
 		 yytext[strlen(yytext)-cut] = '\0';
 		 yylval.ID=strdup(yytext+cut);
 		 return pragma_token;