summaryrefslogtreecommitdiff
path: root/lcode.c
diff options
context:
space:
mode:
Diffstat (limited to 'lcode.c')
-rw-r--r--lcode.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/lcode.c b/lcode.c
index 0d96f632..ed1e0bff 100644
--- a/lcode.c
+++ b/lcode.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lcode.c,v 1.114 2002/12/04 17:38:31 roberto Exp roberto $ 2** $Id: lcode.c,v 1.115 2002/12/11 12:34:22 roberto Exp roberto $
3** Code generator for Lua 3** Code generator for Lua
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -207,10 +207,10 @@ static void freeexp (FuncState *fs, expdesc *e) {
207 207
208 208
209static int addk (FuncState *fs, TObject *k, TObject *v) { 209static int addk (FuncState *fs, TObject *k, TObject *v) {
210 const TObject *index = luaH_get(fs->h, k); 210 const TObject *idx = luaH_get(fs->h, k);
211 if (ttisnumber(index)) { 211 if (ttisnumber(idx)) {
212 lua_assert(luaO_rawequalObj(&fs->f->k[cast(int, nvalue(index))], v)); 212 lua_assert(luaO_rawequalObj(&fs->f->k[cast(int, nvalue(idx))], v));
213 return cast(int, nvalue(index)); 213 return cast(int, nvalue(idx));
214 } 214 }
215 else { /* constant not found; create a new entry */ 215 else { /* constant not found; create a new entry */
216 Proto *f = fs->f; 216 Proto *f = fs->f;