From 0039feb9dae27e25c0c719f49d954741fb2babf3 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Fri, 16 Aug 2002 11:45:18 -0300 Subject: warning from Visual C --- ldblib.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ldblib.c') diff --git a/ldblib.c b/ldblib.c index c2c9dafc..a8913fe8 100644 --- a/ldblib.c +++ b/ldblib.c @@ -1,5 +1,5 @@ /* -** $Id: ldblib.c,v 1.66 2002/08/06 18:01:50 roberto Exp roberto $ +** $Id: ldblib.c,v 1.67 2002/08/12 17:23:12 roberto Exp roberto $ ** Interface from Lua to its debug API ** See Copyright Notice in lua.h */ @@ -155,7 +155,7 @@ static int sethook (lua_State *L) { lua_Number count = luaL_opt_number(L, 3, 0); luaL_check_type(L, 1, LUA_TFUNCTION); luaL_arg_check(L, count <= LUA_MAXCOUNT, 2, "count too large (>= 2^24)"); - lua_sethook(L, hookf, makemask(smask, count)); + lua_sethook(L, hookf, makemask(smask, (int)count)); } lua_pushlightuserdata(L, (void *)&KEY_HOOK); lua_pushvalue(L, 1); -- cgit v1.2.3-55-g6feb