diff options
| author | Mike Pall <mike> | 2010-02-05 01:35:38 +0100 |
|---|---|---|
| committer | Mike Pall <mike> | 2010-02-05 01:35:38 +0100 |
| commit | a0914c409b615af85eafb7e2787be628483ffde2 (patch) | |
| tree | cce46eed095637c4d4873ce38c4dbd952f7851d3 /src/lj_err.c | |
| parent | 8dcc4364cf2c56c9bdd8047fd0dceb4b70f727d2 (diff) | |
| download | luajit-a0914c409b615af85eafb7e2787be628483ffde2.tar.gz luajit-a0914c409b615af85eafb7e2787be628483ffde2.tar.bz2 luajit-a0914c409b615af85eafb7e2787be628483ffde2.zip | |
32/64 bit memory ref cleanup, part 4: GCproto ->varinfo.
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 | ||
