diff --git a/src/ravi_jitshared.c b/src/ravi_jitshared.c index 797bcfa..45f4177 100644 --- a/src/ravi_jitshared.c +++ b/src/ravi_jitshared.c @@ -862,6 +862,7 @@ static void emit_comparison(struct function *fn, int A, int B, int C, int j, switch (opCode) { case OP_RAVI_LT_II: oper = "<"; goto Lemitint; case OP_RAVI_LE_II: oper = "<="; + /* no break */ case OP_RAVI_EQ_II: Lemitint: if (ISK(B) && ISK(C)) { @@ -891,6 +892,7 @@ static void emit_comparison(struct function *fn, int A, int B, int C, int j, break; case OP_RAVI_LT_FF: oper = "<"; goto Lemitflt; case OP_RAVI_LE_FF: oper = "<="; + /* no break */ case OP_RAVI_EQ_FF: Lemitflt: if (ISK(B) && ISK(C)) { @@ -2011,4 +2013,4 @@ bool raviJ_codegen(struct lua_State *L, struct Proto *p, membuff_add_string(buf, fn.body.buf); cleanup(&fn); return true; -} \ No newline at end of file +} diff --git a/tests/test_vm.c b/tests/test_vm.c index 3a7ebea..3e4160e 100644 --- a/tests/test_vm.c +++ b/tests/test_vm.c @@ -153,7 +153,6 @@ static int do_asmvm_test(const char *code, int nparams, struct MyValue *params, fprintf(stderr, "Script did not return a function\n"); goto Lerror; } - int fpos = lua_gettop(L); for (int i = 0; i < nparams; i++) { switch (params[i].type) { case RAVI_TNUMINT: