commit 8927c143175f02084c93a39392d2b58d3a4fb5f4
parent 3e977f02ac1ec62c012c5ceb8de4420285630290
Author: Roberto Ierusalimschy <roberto@inf.puc-rio.br>
Date: Thu, 15 May 2014 17:28:14 -0300
removed macro 'luai_checknum' (as NaN trick is not doable now)
Diffstat:
2 files changed, 2 insertions(+), 8 deletions(-)
diff --git a/lapi.c b/lapi.c
@@ -1,5 +1,5 @@
/*
-** $Id: lapi.c,v 2.212 2014/05/14 18:32:30 roberto Exp roberto $
+** $Id: lapi.c,v 2.213 2014/05/15 15:22:45 roberto Exp roberto $
** Lua API
** See Copyright Notice in lua.h
*/
@@ -499,8 +499,6 @@ LUA_API void lua_pushnil (lua_State *L) {
LUA_API void lua_pushnumber (lua_State *L, lua_Number n) {
lua_lock(L);
setfltvalue(L->top, n);
- luai_checknum(L, L->top,
- luaG_runerror(L, "C API - attempt to push a signaling NaN"));
api_incr_top(L);
lua_unlock(L);
}
diff --git a/lobject.h b/lobject.h
@@ -1,5 +1,5 @@
/*
-** $Id: lobject.h,v 2.89 2014/05/01 18:18:06 roberto Exp roberto $
+** $Id: lobject.h,v 2.90 2014/05/07 11:12:51 roberto Exp roberto $
** Type definitions for Lua objects
** See Copyright Notice in lua.h
*/
@@ -269,10 +269,6 @@ typedef struct lua_TValue TValue;
#define setsvalue2n setsvalue
-/* check whether a number is valid (useful only for NaN trick) */
-#define luai_checknum(L,o,c) { /* empty */ }
-
-
/*