summaryrefslogtreecommitdiff
path: root/src/ltablib.c
diff options
context:
space:
mode:
authorLua Team <team@lua.org>2014-03-21 12:00:00 +0000
committerrepogen <>2014-03-21 12:00:00 +0000
commit05a6ab2dd30e7707c7d5424b905eb93a1dd5c5b2 (patch)
treef24db6e4692bebf7031418ff9c3b51b345016023 /src/ltablib.c
parent87cc247b6b22184fba47184c218a642ea7a49e96 (diff)
downloadlua-github-5.3.0-work2.tar.gz
Lua 5.3.0-work25.3.0-work2
Diffstat (limited to 'src/ltablib.c')
-rw-r--r--src/ltablib.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ltablib.c b/src/ltablib.c
index ad798b4e..a2801a29 100644
--- a/src/ltablib.c
+++ b/src/ltablib.c
@@ -1,5 +1,5 @@
/*
-** $Id: ltablib.c,v 1.65 2013/03/07 18:17:24 roberto Exp $
+** $Id: ltablib.c,v 1.66 2014/03/21 13:52:33 roberto Exp $
** Library for Table Manipulation
** See Copyright Notice in lua.h
*/
@@ -140,7 +140,7 @@ static int unpack (lua_State *L) {
e = luaL_opt(L, luaL_checkint, 3, luaL_len(L, 1));
if (i > e) return 0; /* empty range */
n = e - i + 1; /* number of elements */
- if (n <= 0 || !lua_checkstack(L, n)) /* n <= 0 means arith. overflow */
+ if (n <= 0 || !lua_checkstack(L, n)) /* n <= 0 means arithmetic overflow */
return luaL_error(L, "too many results to unpack");
lua_rawgeti(L, 1, i); /* push arg[i] (avoiding overflow problems) */
while (i++ < e) /* push arg[i + 1...e] */