From 0436c96866851f4081286f86500cb36c47fb27a5 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Mon, 8 Jul 2002 13:51:20 -0300 Subject: C++ warning --- ltablib.c | 4 ++-- 1 file 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 @@ /* -** $Id: ltablib.c,v 1.8 2002/06/25 19:16:44 roberto Exp roberto $ +** $Id: ltablib.c,v 1.9 2002/07/01 19:25:28 roberto Exp roberto $ ** Library for Table Manipulation ** See Copyright Notice in lua.h */ @@ -16,7 +16,7 @@ static int checkint (lua_State *L) { - int n = lua_tonumber(L, -1); + int n = (int)lua_tonumber(L, -1); if (n == 0 && !lua_isnumber(L, -1)) n = -1; lua_pop(L, 1); return n; -- cgit v1.2.3-55-g6feb