diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2015-07-01 14:47:12 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2015-07-01 14:47:12 -0300 |
commit | 2de3361c6c795ec98274f4d8ea3e9d5280e06074 (patch) | |
tree | 1eb892eb0e299cb928cca1a6c43cc4411bb74a27 | |
parent | e89763e9640bf08982ac67888ea6474f1eeccd7c (diff) | |
download | lua-2de3361c6c795ec98274f4d8ea3e9d5280e06074.tar.gz lua-2de3361c6c795ec98274f4d8ea3e9d5280e06074.tar.bz2 lua-2de3361c6c795ec98274f4d8ea3e9d5280e06074.zip |
detail
-rw-r--r-- | ltable.c | 4 | ||||
-rw-r--r-- | ltests.c | 4 |
2 files changed, 4 insertions, 4 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: ltable.c,v 2.110 2015/05/20 16:22:30 roberto Exp roberto $ | 2 | ** $Id: ltable.c,v 2.111 2015/06/09 14:21:13 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 | */ |
@@ -101,7 +101,7 @@ static int l_hashfloat (lua_Number n) { | |||
101 | lua_Integer ni; | 101 | lua_Integer ni; |
102 | n = l_mathop(frexp)(n, &i) * -cast_num(INT_MIN); | 102 | n = l_mathop(frexp)(n, &i) * -cast_num(INT_MIN); |
103 | if (!lua_numbertointeger(n, &ni)) { /* is 'n' inf/-inf/NaN? */ | 103 | if (!lua_numbertointeger(n, &ni)) { /* is 'n' inf/-inf/NaN? */ |
104 | lua_assert(luai_numisnan(n) || l_mathop(fabs)(n) == HUGE_VAL); | 104 | lua_assert(luai_numisnan(n) || l_mathop(fabs)(n) == cast_num(HUGE_VAL)); |
105 | return 0; | 105 | return 0; |
106 | } | 106 | } |
107 | else { /* normal case */ | 107 | else { /* normal case */ |
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: ltests.c,v 2.205 2015/04/02 21:10:21 roberto Exp roberto $ | 2 | ** $Id: ltests.c,v 2.206 2015/06/18 14:25:26 roberto Exp roberto $ |
3 | ** Internal Module for Debugging of the Lua Implementation | 3 | ** Internal Module for Debugging of the Lua Implementation |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -911,7 +911,7 @@ static int doremote (lua_State *L) { | |||
911 | static int int2fb_aux (lua_State *L) { | 911 | static int int2fb_aux (lua_State *L) { |
912 | int b = luaO_int2fb((unsigned int)luaL_checkinteger(L, 1)); | 912 | int b = luaO_int2fb((unsigned int)luaL_checkinteger(L, 1)); |
913 | lua_pushinteger(L, b); | 913 | lua_pushinteger(L, b); |
914 | lua_pushinteger(L, luaO_fb2int(b)); | 914 | lua_pushinteger(L, (unsigned int)luaO_fb2int(b)); |
915 | return 2; | 915 | return 2; |
916 | } | 916 | } |
917 | 917 | ||