aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lapi.c4
-rw-r--r--lobject.h6
2 files changed, 2 insertions, 8 deletions
diff --git a/lapi.c b/lapi.c
index 7eca6b6a..7010ec70 100644
--- a/lapi.c
+++ b/lapi.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lapi.c,v 2.212 2014/05/14 18:32:30 roberto Exp roberto $ 2** $Id: lapi.c,v 2.213 2014/05/15 15:22:45 roberto Exp roberto $
3** Lua API 3** Lua API
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -499,8 +499,6 @@ LUA_API void lua_pushnil (lua_State *L) {
499LUA_API void lua_pushnumber (lua_State *L, lua_Number n) { 499LUA_API void lua_pushnumber (lua_State *L, lua_Number n) {
500 lua_lock(L); 500 lua_lock(L);
501 setfltvalue(L->top, n); 501 setfltvalue(L->top, n);
502 luai_checknum(L, L->top,
503 luaG_runerror(L, "C API - attempt to push a signaling NaN"));
504 api_incr_top(L); 502 api_incr_top(L);
505 lua_unlock(L); 503 lua_unlock(L);
506} 504}
diff --git a/lobject.h b/lobject.h
index 53febca7..793309b0 100644
--- a/lobject.h
+++ b/lobject.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lobject.h,v 2.89 2014/05/01 18:18:06 roberto Exp roberto $ 2** $Id: lobject.h,v 2.90 2014/05/07 11:12:51 roberto Exp roberto $
3** Type definitions for Lua objects 3** Type definitions for Lua objects
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -269,10 +269,6 @@ typedef struct lua_TValue TValue;
269#define setsvalue2n setsvalue 269#define setsvalue2n setsvalue
270 270
271 271
272/* check whether a number is valid (useful only for NaN trick) */
273#define luai_checknum(L,o,c) { /* empty */ }
274
275
276 272
277 273
278/* 274/*