diff options
Diffstat (limited to 'src/lj_err.c')
-rw-r--r-- | src/lj_err.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lj_err.c b/src/lj_err.c index cf7f9ae4..b0143c5a 100644 --- a/src/lj_err.c +++ b/src/lj_err.c | |||
@@ -138,9 +138,9 @@ static BCLine currentline(lua_State *L, GCfunc *fn, cTValue *nextframe) | |||
138 | static const char *getvarname(const GCproto *pt, BCPos pc, BCReg slot) | 138 | static const char *getvarname(const GCproto *pt, BCPos pc, BCReg slot) |
139 | { | 139 | { |
140 | MSize i; | 140 | MSize i; |
141 | for (i = 0; i < pt->sizevarinfo && pt->varinfo[i].startpc <= pc; i++) | 141 | for (i = 0; i < pt->sizevarinfo && proto_varinfo(pt)[i].startpc <= pc; i++) |
142 | if (pc < pt->varinfo[i].endpc && slot-- == 0) | 142 | if (pc < proto_varinfo(pt)[i].endpc && slot-- == 0) |
143 | return strdata(pt->varinfo[i].name); | 143 | return strdata(gco2str(gcref(proto_varinfo(pt)[i].name))); |
144 | return NULL; | 144 | return NULL; |
145 | } | 145 | } |
146 | 146 | ||