aboutsummaryrefslogtreecommitdiff
path: root/lauxlib.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2014-04-01 15:55:06 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2014-04-01 15:55:06 -0300
commit5aeb57f11f2499050907d2ce1d27f66006e226c4 (patch)
tree943143bd6ca7f9eef10de7314914ba2794213b3e /lauxlib.c
parent493b3fdd6505bc5e97acfbd9e1596b45d9033f11 (diff)
downloadlua-5aeb57f11f2499050907d2ce1d27f66006e226c4.tar.gz
lua-5aeb57f11f2499050907d2ce1d27f66006e226c4.tar.bz2
lua-5aeb57f11f2499050907d2ce1d27f66006e226c4.zip
detail (error message for conversion from float to integer)
Diffstat (limited to 'lauxlib.c')
-rw-r--r--lauxlib.c4
1 files 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 @@
1/* 1/*
2** $Id: lauxlib.c,v 1.259 2014/02/19 13:48:53 roberto Exp roberto $ 2** $Id: lauxlib.c,v 1.260 2014/03/12 20:57:40 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*/
@@ -397,7 +397,7 @@ LUALIB_API lua_Number luaL_optnumber (lua_State *L, int arg, lua_Number def) {
397 397
398static void interror (lua_State *L, int arg) { 398static void interror (lua_State *L, int arg) {
399 if (lua_type(L, arg) == LUA_TNUMBER) 399 if (lua_type(L, arg) == LUA_TNUMBER)
400 luaL_argerror(L, arg, "float value out of range"); 400 luaL_argerror(L, arg, "float value out of integer range");
401 else 401 else
402 tag_error(L, arg, LUA_TNUMBER); 402 tag_error(L, arg, LUA_TNUMBER);
403} 403}