aboutsummaryrefslogtreecommitdiff
path: root/lcode.c
diff options
context:
space:
mode:
Diffstat (limited to 'lcode.c')
-rw-r--r--lcode.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lcode.c b/lcode.c
index e2ffda4e..a36e2376 100644
--- a/lcode.c
+++ b/lcode.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lcode.c,v 2.84 2014/03/09 19:21:34 roberto Exp roberto $ 2** $Id: lcode.c,v 2.85 2014/03/21 13:52:33 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*/
@@ -317,7 +317,7 @@ static int addk (FuncState *fs, TValue *key, TValue *v) {
317 TValue *idx = luaH_set(L, fs->ls->h, key); /* index scanner table */ 317 TValue *idx = luaH_set(L, fs->ls->h, key); /* index scanner table */
318 int k, oldsize; 318 int k, oldsize;
319 if (ttisinteger(idx)) { /* is there an index there? */ 319 if (ttisinteger(idx)) { /* is there an index there? */
320 k = ivalue(idx); 320 k = cast_int(ivalue(idx));
321 /* correct value? (warning: must distinguish floats from integers!) */ 321 /* correct value? (warning: must distinguish floats from integers!) */
322 if (k < fs->nk && ttype(&f->k[k]) == ttype(v) && 322 if (k < fs->nk && ttype(&f->k[k]) == ttype(v) &&
323 luaV_rawequalobj(&f->k[k], v)) 323 luaV_rawequalobj(&f->k[k], v))