diff options
author | Guy Harris <guy@alum.mit.edu> | 2015-01-22 13:04:15 -0800 |
---|---|---|
committer | Hadriel Kaplan <hadrielk@yahoo.com> | 2015-01-23 03:58:29 +0000 |
commit | 19a8eafc15aec0b7023b6bb09fc6bb72e8a714ab (patch) | |
tree | 983fe2fb80d1886dfa7618ef3e893101b0734b61 /epan/wslua/wslua_listener.c | |
parent | 2eaa467b34d78b216a1ba9305bd23a9196209b3b (diff) |
Use luaL_{check,opt}integer() rather than luaL_{check,opt}int().
Lua prior to 5.3 defined luaL_{check,opt}int() as macros wrapping
luaL_{check,opt}integer() with a cast to int; Lua 5.3 doesn't.
It sounds as if the Lua developers are deprecating luaL_{check,opt}int():
http://osdir.com/ml/general/2014-10/msg46568.html
Change-Id: I2d0b649dcd57ede124f31d39f7945f342ae9b18f
Reviewed-on: https://code.wireshark.org/review/6744
Petri-Dish: Guy Harris <guy@alum.mit.edu>
Reviewed-by: Guy Harris <guy@alum.mit.edu>
Reviewed-by: Hadriel Kaplan <hadrielk@yahoo.com>
Petri-Dish: Hadriel Kaplan <hadrielk@yahoo.com>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Tested-by: Hadriel Kaplan <hadrielk@yahoo.com>
Diffstat (limited to 'epan/wslua/wslua_listener.c')
-rw-r--r-- | epan/wslua/wslua_listener.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/wslua/wslua_listener.c b/epan/wslua/wslua_listener.c index dd76825b0e..3f7767d347 100644 --- a/epan/wslua/wslua_listener.c +++ b/epan/wslua/wslua_listener.c @@ -110,7 +110,7 @@ static int lua_tap_packet(void *tapdata, packet_info *pinfo, epan_dissect_t *edt switch ( lua_pcall(tap->L,3,1,1) ) { case 0: - retval = luaL_optint(tap->L,-1,1); + retval = (int)luaL_optinteger(tap->L,-1,1); break; case LUA_ERRRUN: break; |