mirror of
https://github.com/lua/lua
synced 2024-11-26 22:59:35 +03:00
detail (removed 'assert')
This commit is contained in:
parent
138e69cc55
commit
c72fb1cf8e
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
** $Id: lauxlib.c,v 1.251 2013/06/14 18:12:53 roberto Exp roberto $
|
** $Id: lauxlib.c,v 1.252 2013/06/14 18:34:49 roberto Exp roberto $
|
||||||
** Auxiliary functions for building Lua libraries
|
** Auxiliary functions for building Lua libraries
|
||||||
** See Copyright Notice in lua.h
|
** See Copyright Notice in lua.h
|
||||||
*/
|
*/
|
||||||
@ -387,10 +387,8 @@ LUALIB_API lua_Number luaL_optnumber (lua_State *L, int narg, lua_Number def) {
|
|||||||
|
|
||||||
|
|
||||||
static void interror (lua_State *L, int narg) {
|
static void interror (lua_State *L, int narg) {
|
||||||
if (lua_type(L, narg) == LUA_TNUMBER) {
|
if (lua_type(L, narg) == LUA_TNUMBER)
|
||||||
assert(!lua_isinteger(L, narg));
|
|
||||||
luaL_argerror(L, narg, "float value out of range");
|
luaL_argerror(L, narg, "float value out of range");
|
||||||
}
|
|
||||||
else
|
else
|
||||||
tag_error(L, narg, LUA_TNUMBER);
|
tag_error(L, narg, LUA_TNUMBER);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user