diff options
Diffstat (limited to 'lcode.c')
-rw-r--r-- | lcode.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -1844,7 +1844,9 @@ void luaK_finish (FuncState *fs) { | |||
1844 | Proto *p = fs->f; | 1844 | Proto *p = fs->f; |
1845 | for (i = 0; i < fs->pc; i++) { | 1845 | for (i = 0; i < fs->pc; i++) { |
1846 | Instruction *pc = &p->code[i]; | 1846 | Instruction *pc = &p->code[i]; |
1847 | lua_assert(i == 0 || isOT(*(pc - 1)) == isIT(*pc)); | 1847 | /* avoid "not used" warnings when assert is off (for 'onelua.c') */ |
1848 | (void)luaP_isOT; (void)luaP_isIT; | ||
1849 | lua_assert(i == 0 || luaP_isOT(*(pc - 1)) == luaP_isIT(*pc)); | ||
1848 | switch (GET_OPCODE(*pc)) { | 1850 | switch (GET_OPCODE(*pc)) { |
1849 | case OP_RETURN0: case OP_RETURN1: { | 1851 | case OP_RETURN0: case OP_RETURN1: { |
1850 | if (!(fs->needclose || (p->flag & PF_ISVARARG))) | 1852 | if (!(fs->needclose || (p->flag & PF_ISVARARG))) |