summaryrefslogtreecommitdiff
path: root/lvm.c
diff options
context:
space:
mode:
Diffstat (limited to 'lvm.c')
-rw-r--r--lvm.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/lvm.c b/lvm.c
index 7d5ab9db..ece7d77a 100644
--- a/lvm.c
+++ b/lvm.c
@@ -583,7 +583,7 @@ void luaV_concat (lua_State *L, int total) {
/*
-** Main operation 'ra' = #rb'.
+** Main operation 'ra = #rb'.
*/
void luaV_objlen (lua_State *L, StkId ra, const TValue *rb) {
const TValue *tm;
@@ -757,11 +757,13 @@ void luaV_finishOp (lua_State *L) {
}
break;
}
- case OP_TFORCALL: case OP_CALL: case OP_TAILCALL:
- case OP_SETTABUP: case OP_SETTABLE:
- case OP_SETI: case OP_SETFIELD:
+ default: {
+ /* only these other opcodes can yield */
+ lua_assert(op == OP_TFORCALL || op == OP_CALL ||
+ op == OP_TAILCALL || op == OP_SETTABUP || op == OP_SETTABLE ||
+ op == OP_SETI || op == OP_SETFIELD);
break;
- default: lua_assert(0);
+ }
}
}