*fixed a bug with while and do statements.

This commit is contained in:
paladin-t 2016-01-25 18:22:10 +08:00
parent 111ab4a9bc
commit dac311f3ce
3 changed files with 13 additions and 2 deletions

View File

@ -1,6 +1,7 @@
Jan. 25 2016
Fixed a memory leak when printing a referenced usertype
Fixed a bug with nested IF statement
Fixed a bug with WHILE and DO statements when returning from a sub routine
Fixed an indexing bug with list
Added a new sample script source file

View File

@ -12380,7 +12380,12 @@ _loop_begin:
result = MB_FUNC_OK;
goto _exit;
} else if(result != MB_FUNC_OK && result != MB_SUB_RETURN) { /* Normally */
} else if(result == MB_SUB_RETURN) { /* RETURN */
if(ast) ast = ast->prev;
if(ast) ast = ast->prev;
goto _exit;
} else if(result != MB_FUNC_OK) { /* Normally */
goto _exit;
}
@ -12454,7 +12459,12 @@ _loop_begin:
result = MB_FUNC_OK;
goto _exit;
} else if(result != MB_FUNC_OK && result != MB_SUB_RETURN) { /* Normally */
} else if(result == MB_SUB_RETURN) { /* RETURN */
if(ast) ast = ast->prev;
if(ast) ast = ast->prev;
goto _exit;
} else if(result != MB_FUNC_OK) { /* Normally */
goto _exit;
}

Binary file not shown.