Reset literal queue after unknown preprocessor directive
Fix an assertion failure at sc1.c:3702 (litidx==0).
This commit is contained in:
parent
b2eca9203b
commit
cf4b65ca66
@ -1591,9 +1591,10 @@ static int command(void)
|
|||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
if (!SKIPPING) {
|
if (!SKIPPING) {
|
||||||
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;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user