aboutsummaryrefslogtreecommitdiff
path: root/src/lj_api.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lj_api.c')
-rw-r--r--src/lj_api.c4
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) {