aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lauxlib.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/lauxlib.c b/lauxlib.c
index 17fc962c..2138b28e 100644
--- a/lauxlib.c
+++ b/lauxlib.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lauxlib.c,v 1.251 2013/06/14 18:12:53 roberto Exp roberto $ 2** $Id: lauxlib.c,v 1.252 2013/06/14 18:34:49 roberto Exp roberto $
3** Auxiliary functions for building Lua libraries 3** Auxiliary functions for building Lua libraries
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -387,10 +387,8 @@ LUALIB_API lua_Number luaL_optnumber (lua_State *L, int narg, lua_Number def) {
387 387
388 388
389static void interror (lua_State *L, int narg) { 389static void interror (lua_State *L, int narg) {
390 if (lua_type(L, narg) == LUA_TNUMBER) { 390 if (lua_type(L, narg) == LUA_TNUMBER)
391 assert(!lua_isinteger(L, narg));
392 luaL_argerror(L, narg, "float value out of range"); 391 luaL_argerror(L, narg, "float value out of range");
393 }
394 else 392 else
395 tag_error(L, narg, LUA_TNUMBER); 393 tag_error(L, narg, LUA_TNUMBER);
396} 394}