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/lj_api.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/lj_api.c')
-rw-r--r-- | src/lj_api.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lj_api.c b/src/lj_api.c index 48bd605d..ad28bbf2 100644 --- a/src/lj_api.c +++ b/src/lj_api.c | |||
@@ -811,9 +811,9 @@ static const char *aux_upvalue(cTValue *f, uint32_t idx, TValue **val) | |||
811 | fn = funcV(f); | 811 | fn = funcV(f); |
812 | if (isluafunc(fn)) { | 812 | if (isluafunc(fn)) { |
813 | GCproto *pt = funcproto(fn); | 813 | GCproto *pt = funcproto(fn); |
814 | if (idx < pt->sizeuvname) { | 814 | if (idx < pt->sizeuv) { |
815 | *val = uvval(&gcref(fn->l.uvptr[idx])->uv); | 815 | *val = uvval(&gcref(fn->l.uvptr[idx])->uv); |
816 | return strdata(gco2str(proto_uvname(pt, idx))); | 816 | return strdata(proto_uvname(pt, idx)); |
817 | } | 817 | } |
818 | } else { | 818 | } else { |
819 | if (idx < fn->c.nupvalues) { | 819 | if (idx < fn->c.nupvalues) { |