diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2014-04-01 11:39:55 -0300 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2014-04-01 11:39:55 -0300 |
| commit | 607be77ec8d2b6062077772a55831a5aca16fb2d (patch) | |
| tree | 160fdbdaab4cf577e94e2f1f78a4d717a26bfcd1 /lcode.c | |
| parent | 0d745ed04c93e907e9f2bd8c21ce1ca27bba9b6a (diff) | |
| download | lua-607be77ec8d2b6062077772a55831a5aca16fb2d.tar.gz lua-607be77ec8d2b6062077772a55831a5aca16fb2d.tar.bz2 lua-607be77ec8d2b6062077772a55831a5aca16fb2d.zip | |
some details to avoid warnings
Diffstat (limited to '')
| -rw-r--r-- | lcode.c | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -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)) |
