diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2002-07-08 13:51:20 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2002-07-08 13:51:20 -0300 |
commit | 0436c96866851f4081286f86500cb36c47fb27a5 (patch) | |
tree | d959112e123f0f74d54718e89e4ddc5c89d0a0ec | |
parent | f8279f6cd8bf22245be30649df5a2d19d868e114 (diff) | |
download | lua-0436c96866851f4081286f86500cb36c47fb27a5.tar.gz lua-0436c96866851f4081286f86500cb36c47fb27a5.tar.bz2 lua-0436c96866851f4081286f86500cb36c47fb27a5.zip |
C++ warning
-rw-r--r-- | ltablib.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 | ||
18 | static int checkint (lua_State *L) { | 18 | static 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; |