diff options
Diffstat (limited to 'ltable.c')
-rw-r--r-- | ltable.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: ltable.c,v 2.82 2013/08/29 13:49:57 roberto Exp roberto $ | 2 | ** $Id: ltable.c,v 2.83 2013/09/11 12:26:14 roberto Exp roberto $ |
3 | ** Lua tables (hash) | 3 | ** Lua tables (hash) |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -421,7 +421,7 @@ TValue *luaH_newkey (lua_State *L, Table *t, const TValue *key) { | |||
421 | else if (ttisfloat(key)) { | 421 | else if (ttisfloat(key)) { |
422 | lua_Number n = fltvalue(key); | 422 | lua_Number n = fltvalue(key); |
423 | lua_Integer k; | 423 | lua_Integer k; |
424 | if (luai_numisnan(L, n)) | 424 | if (luai_numisnan(n)) |
425 | luaG_runerror(L, "table index is NaN"); | 425 | luaG_runerror(L, "table index is NaN"); |
426 | if (numisinteger(n, &k)) { /* index is int? */ | 426 | if (numisinteger(n, &k)) { /* index is int? */ |
427 | setivalue(&aux, k); | 427 | setivalue(&aux, k); |