From 5aeb57f11f2499050907d2ce1d27f66006e226c4 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Tue, 1 Apr 2014 15:55:06 -0300 Subject: detail (error message for conversion from float to integer) --- lauxlib.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lauxlib.c b/lauxlib.c index a0d5aff8..9a3cf243 100644 --- 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); } -- cgit v1.2.3-55-g6feb