diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2013-06-14 17:46:40 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2013-06-14 17:46:40 -0300 |
commit | c72fb1cf8e0869aa4adc894c4e28f9d1be2e6574 (patch) | |
tree | f668e056ae7c9b248b4a9c59a91feb41753de8ea /lauxlib.c | |
parent | 138e69cc55fb3e808206c3532b26063baa19d93b (diff) | |
download | lua-c72fb1cf8e0869aa4adc894c4e28f9d1be2e6574.tar.gz lua-c72fb1cf8e0869aa4adc894c4e28f9d1be2e6574.tar.bz2 lua-c72fb1cf8e0869aa4adc894c4e28f9d1be2e6574.zip |
detail (removed 'assert')
Diffstat (limited to 'lauxlib.c')
-rw-r--r-- | lauxlib.c | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -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 | ||
389 | static void interror (lua_State *L, int narg) { | 389 | static 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 | } |