diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2002-08-16 11:45:18 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2002-08-16 11:45:18 -0300 |
commit | 0039feb9dae27e25c0c719f49d954741fb2babf3 (patch) | |
tree | fd247cf0327702fad4f5a375af7b204cac1de366 | |
parent | aa5b15f2712d3b08a7716a833c6fd8032f203b8d (diff) | |
download | lua-0039feb9dae27e25c0c719f49d954741fb2babf3.tar.gz lua-0039feb9dae27e25c0c719f49d954741fb2babf3.tar.bz2 lua-0039feb9dae27e25c0c719f49d954741fb2babf3.zip |
warning from Visual C
-rw-r--r-- | ldblib.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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); |