lua

A copy of the Lua development repository
Log | Files | Refs | README

commit 5aeb57f11f2499050907d2ce1d27f66006e226c4
parent 493b3fdd6505bc5e97acfbd9e1596b45d9033f11
Author: Roberto Ierusalimschy <roberto@inf.puc-rio.br>
Date:   Tue,  1 Apr 2014 15:54:41 -0300

detail (error message for conversion from float to integer)

Diffstat:
Mlauxlib.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lauxlib.c b/lauxlib.c @@ -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); }