removed macro 'luai_checknum' (as NaN trick is not doable now)

This commit is contained in:
Roberto Ierusalimschy 2014-05-15 17:28:39 -03:00
parent 3e977f02ac
commit 8927c14317
2 changed files with 2 additions and 8 deletions

4
lapi.c
View File

@ -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);
}

View File

@ -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 */ }
/*