aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2002-07-08 13:51:20 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2002-07-08 13:51:20 -0300
commit0436c96866851f4081286f86500cb36c47fb27a5 (patch)
treed959112e123f0f74d54718e89e4ddc5c89d0a0ec
parentf8279f6cd8bf22245be30649df5a2d19d868e114 (diff)
downloadlua-0436c96866851f4081286f86500cb36c47fb27a5.tar.gz
lua-0436c96866851f4081286f86500cb36c47fb27a5.tar.bz2
lua-0436c96866851f4081286f86500cb36c47fb27a5.zip
C++ warning
-rw-r--r--ltablib.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ltablib.c b/ltablib.c
index b7ab7a63..11c8cc66 100644
--- a/ltablib.c
+++ b/ltablib.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: ltablib.c,v 1.8 2002/06/25 19:16:44 roberto Exp roberto $ 2** $Id: ltablib.c,v 1.9 2002/07/01 19:25:28 roberto Exp roberto $
3** Library for Table Manipulation 3** Library for Table Manipulation
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -16,7 +16,7 @@
16 16
17 17
18static int checkint (lua_State *L) { 18static int checkint (lua_State *L) {
19 int n = lua_tonumber(L, -1); 19 int n = (int)lua_tonumber(L, -1);
20 if (n == 0 && !lua_isnumber(L, -1)) n = -1; 20 if (n == 0 && !lua_isnumber(L, -1)) n = -1;
21 lua_pop(L, 1); 21 lua_pop(L, 1);
22 return n; 22 return n;