aboutsummaryrefslogtreecommitdiff
path: root/ldblib.c
diff options
context:
space:
mode:
Diffstat (limited to 'ldblib.c')
-rw-r--r--ldblib.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ldblib.c b/ldblib.c
index c2c9dafc..a8913fe8 100644
--- a/ldblib.c
+++ b/ldblib.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: ldblib.c,v 1.66 2002/08/06 18:01:50 roberto Exp roberto $ 2** $Id: ldblib.c,v 1.67 2002/08/12 17:23:12 roberto Exp roberto $
3** Interface from Lua to its debug API 3** Interface from Lua to its debug API
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -155,7 +155,7 @@ static int sethook (lua_State *L) {
155 lua_Number count = luaL_opt_number(L, 3, 0); 155 lua_Number count = luaL_opt_number(L, 3, 0);
156 luaL_check_type(L, 1, LUA_TFUNCTION); 156 luaL_check_type(L, 1, LUA_TFUNCTION);
157 luaL_arg_check(L, count <= LUA_MAXCOUNT, 2, "count too large (>= 2^24)"); 157 luaL_arg_check(L, count <= LUA_MAXCOUNT, 2, "count too large (>= 2^24)");
158 lua_sethook(L, hookf, makemask(smask, count)); 158 lua_sethook(L, hookf, makemask(smask, (int)count));
159 } 159 }
160 lua_pushlightuserdata(L, (void *)&KEY_HOOK); 160 lua_pushlightuserdata(L, (void *)&KEY_HOOK);
161 lua_pushvalue(L, 1); 161 lua_pushvalue(L, 1);