Reset literal queue after unknown preprocessor directive

Fix an assertion failure at sc1.c:3702 (litidx==0).
This commit is contained in:
Zeex 2019-06-29 20:32:50 +06:00
parent b2eca9203b
commit cf4b65ca66

View File

@ -1594,6 +1594,7 @@ static int command(void)
error(31); /* unknown compiler directive */ error(31); /* unknown compiler directive */
ret=CMD_NONE; /* process as normal line */ ret=CMD_NONE; /* process as normal line */
} }
litidx=0; /* this directive was added to the literal queue - reset it */
} /* switch */ } /* switch */
return ret; return ret;
} }