mirror of
https://github.com/lua/lua
synced 2026-09-29 04:35:58 +03:00
detail (error message for conversion from float to integer)
This commit is contained in:
parent
493b3fdd65
commit
5aeb57f11f
1 changed files with 2 additions and 2 deletions
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
** $Id: lauxlib.c,v 1.259 2014/02/19 13:48:53 roberto Exp roberto $
|
||||
** $Id: lauxlib.c,v 1.260 2014/03/12 20:57:40 roberto Exp roberto $
|
||||
** Auxiliary functions for building Lua libraries
|
||||
** See Copyright Notice in lua.h
|
||||
*/
|
||||
|
|
@ -397,7 +397,7 @@ LUALIB_API lua_Number luaL_optnumber (lua_State *L, int arg, lua_Number def) {
|
|||
|
||||
static void interror (lua_State *L, int arg) {
|
||||
if (lua_type(L, arg) == LUA_TNUMBER)
|
||||
luaL_argerror(L, arg, "float value out of range");
|
||||
luaL_argerror(L, arg, "float value out of integer range");
|
||||
else
|
||||
tag_error(L, arg, LUA_TNUMBER);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue