aboutsummaryrefslogtreecommitdiff
path: root/lcode.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2014-04-01 11:39:55 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2014-04-01 11:39:55 -0300
commit607be77ec8d2b6062077772a55831a5aca16fb2d (patch)
tree160fdbdaab4cf577e94e2f1f78a4d717a26bfcd1 /lcode.c
parent0d745ed04c93e907e9f2bd8c21ce1ca27bba9b6a (diff)
downloadlua-607be77ec8d2b6062077772a55831a5aca16fb2d.tar.gz
lua-607be77ec8d2b6062077772a55831a5aca16fb2d.tar.bz2
lua-607be77ec8d2b6062077772a55831a5aca16fb2d.zip
some details to avoid warnings
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))