diff options
author | Mike Pall <mike> | 2010-02-08 05:30:57 +0100 |
---|---|---|
committer | Mike Pall <mike> | 2010-02-08 05:30:57 +0100 |
commit | 6194b1c896c78c2ba0436053dcae596725317e9c (patch) | |
tree | c3fc29eddcb51e3717fce1d00eff29f9a211f300 /src/lib_jit.c | |
parent | f275a9d7ef1a47c30cbb9c70897914d633dff14c (diff) | |
download | luajit-6194b1c896c78c2ba0436053dcae596725317e9c.tar.gz luajit-6194b1c896c78c2ba0436053dcae596725317e9c.tar.bz2 luajit-6194b1c896c78c2ba0436053dcae596725317e9c.zip |
Redesign of prototype generation, part 5: colocation of protoype arrays.
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 d0b9e833..33571b17 100644 --- a/src/lib_jit.c +++ b/src/lib_jit.c | |||
@@ -246,8 +246,8 @@ LJLIB_CF(jit_util_funcuvname) | |||
246 | { | 246 | { |
247 | GCproto *pt = check_Lproto(L, 0); | 247 | GCproto *pt = check_Lproto(L, 0); |
248 | uint32_t idx = (uint32_t)lj_lib_checkint(L, 2); | 248 | uint32_t idx = (uint32_t)lj_lib_checkint(L, 2); |
249 | if (idx < pt->sizeuvname) { | 249 | if (idx < pt->sizeuv) { |
250 | setstrV(L, L->top-1, gco2str(proto_uvname(pt, idx))); | 250 | setstrV(L, L->top-1, proto_uvname(pt, idx)); |
251 | return 1; | 251 | return 1; |
252 | } | 252 | } |
253 | return 0; | 253 | return 0; |