diff options
Diffstat (limited to 'lapi.c')
-rw-r--r-- | lapi.c | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -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) { | |||
499 | LUA_API void lua_pushnumber (lua_State *L, lua_Number n) { | 499 | LUA_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 | } |