fix: santizer error in sim

This commit is contained in:
Shengliang Guan 2022-05-21 17:11:24 +08:00
parent 682a7cab17
commit d14429f349
1 changed files with 1 additions and 1 deletions

View File

@ -92,7 +92,7 @@ SScript *simProcessCallOver(SScript *script) {
simScriptPos--;
simFreeScript(script);
if (simScriptPos == -1 && simExecSuccess) {
if (simScriptPos == -1 || simExecSuccess) {
simInfo("----------------------------------------------------------------------");
simInfo("Simulation Test Done, " SUCCESS_PREFIX "%d" SUCCESS_POSTFIX " Passed:\n", simScriptSucced);
return NULL;