aboutsummaryrefslogtreecommitdiff
path: root/lauxlib.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2013-06-14 17:46:40 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2013-06-14 17:46:40 -0300
commitc72fb1cf8e0869aa4adc894c4e28f9d1be2e6574 (patch)
treef668e056ae7c9b248b4a9c59a91feb41753de8ea /lauxlib.c
parent138e69cc55fb3e808206c3532b26063baa19d93b (diff)
downloadlua-c72fb1cf8e0869aa4adc894c4e28f9d1be2e6574.tar.gz
lua-c72fb1cf8e0869aa4adc894c4e28f9d1be2e6574.tar.bz2
lua-c72fb1cf8e0869aa4adc894c4e28f9d1be2e6574.zip
detail (removed 'assert')
Diffstat (limited to 'lauxlib.c')
-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}