diff options
Diffstat (limited to 'src/lib_jit.c')
| -rw-r--r-- | src/lib_jit.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib_jit.c b/src/lib_jit.c index acd6c293..7348ef21 100644 --- a/src/lib_jit.c +++ b/src/lib_jit.c | |||
| @@ -227,7 +227,7 @@ LJLIB_CF(jit_util_funcbc) | |||
| 227 | if (pc < pt->sizebc) { | 227 | if (pc < pt->sizebc) { |
| 228 | BCIns ins = proto_bc(pt)[pc]; | 228 | BCIns ins = proto_bc(pt)[pc]; |
| 229 | BCOp op = bc_op(ins); | 229 | BCOp op = bc_op(ins); |
| 230 | lua_assert(op < BC__MAX); | 230 | lj_assertL(op < BC__MAX, "bad bytecode op %d", op); |
| 231 | setintV(L->top, ins); | 231 | setintV(L->top, ins); |
| 232 | setintV(L->top+1, lj_bc_mode[op]); | 232 | setintV(L->top+1, lj_bc_mode[op]); |
| 233 | L->top += 2; | 233 | L->top += 2; |
| @@ -491,7 +491,7 @@ static int jitopt_param(jit_State *J, const char *str) | |||
| 491 | int i; | 491 | int i; |
| 492 | for (i = 0; i < JIT_P__MAX; i++) { | 492 | for (i = 0; i < JIT_P__MAX; i++) { |
| 493 | size_t len = *(const uint8_t *)lst; | 493 | size_t len = *(const uint8_t *)lst; |
| 494 | lua_assert(len != 0); | 494 | lj_assertJ(len != 0, "bad JIT_P_STRING"); |
| 495 | if (strncmp(str, lst+1, len) == 0 && str[len] == '=') { | 495 | if (strncmp(str, lst+1, len) == 0 && str[len] == '=') { |
| 496 | int32_t n = 0; | 496 | int32_t n = 0; |
| 497 | const char *p = &str[len+1]; | 497 | const char *p = &str[len+1]; |
