aboutsummaryrefslogtreecommitdiff
path: root/src/lib_jit.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib_jit.c')
-rw-r--r--src/lib_jit.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib_jit.c b/src/lib_jit.c
index 0728fc3a..ef6fd465 100644
--- a/src/lib_jit.c
+++ b/src/lib_jit.c
@@ -209,7 +209,7 @@ LJLIB_CF(jit_util_funcbc)
209 GCproto *pt = check_Lproto(L, 0); 209 GCproto *pt = check_Lproto(L, 0);
210 BCPos pc = (BCPos)lj_lib_checkint(L, 2) - 1; 210 BCPos pc = (BCPos)lj_lib_checkint(L, 2) - 1;
211 if (pc < pt->sizebc) { 211 if (pc < pt->sizebc) {
212 BCIns ins = pt->bc[pc]; 212 BCIns ins = proto_ins(pt, pc);
213 BCOp op = bc_op(ins); 213 BCOp op = bc_op(ins);
214 lua_assert(op < BC__MAX); 214 lua_assert(op < BC__MAX);
215 setintV(L->top, ins); 215 setintV(L->top, ins);
@@ -227,12 +227,12 @@ LJLIB_CF(jit_util_funck)
227 ptrdiff_t idx = (ptrdiff_t)lj_lib_checkint(L, 2); 227 ptrdiff_t idx = (ptrdiff_t)lj_lib_checkint(L, 2);
228 if (idx >= 0) { 228 if (idx >= 0) {
229 if (idx < (ptrdiff_t)pt->sizekn) { 229 if (idx < (ptrdiff_t)pt->sizekn) {
230 setnumV(L->top-1, pt->k.n[idx]); 230 setnumV(L->top-1, proto_knum(pt, idx));
231 return 1; 231 return 1;
232 } 232 }
233 } else { 233 } else {
234 if (~idx < (ptrdiff_t)pt->sizekgc) { 234 if (~idx < (ptrdiff_t)pt->sizekgc) {
235 GCobj *gc = gcref(pt->k.gc[idx]); 235 GCobj *gc = proto_kgc(pt, idx);
236 setgcV(L, L->top-1, &gc->gch, ~gc->gch.gct); 236 setgcV(L, L->top-1, &gc->gch, ~gc->gch.gct);
237 return 1; 237 return 1;
238 } 238 }