aboutsummaryrefslogtreecommitdiffstats
path: root/epan/wslua/init_wslua.c
diff options
context:
space:
mode:
authorstig <stig@f5534014-38df-0310-8fa8-9805f1628bb7>2008-01-07 23:00:09 +0000
committerstig <stig@f5534014-38df-0310-8fa8-9805f1628bb7>2008-01-07 23:00:09 +0000
commit9fdd77c084af61f22ca184efcf0e404ac0949a3a (patch)
tree0a6d56aa81e509216f52b951bda0dbd92a5ee849 /epan/wslua/init_wslua.c
parent8db17d606e6d46bf9ef58dde9becdaeb31304783 (diff)
Add a cast.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@24028 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan/wslua/init_wslua.c')
-rw-r--r--epan/wslua/init_wslua.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/wslua/init_wslua.c b/epan/wslua/init_wslua.c
index a3de186ca2..ebf4cf22c2 100644
--- a/epan/wslua/init_wslua.c
+++ b/epan/wslua/init_wslua.c
@@ -90,7 +90,7 @@ int dissect_lua(tvbuff_t* tvb, packet_info* pinfo, proto_tree* tree) {
/* if the Lua dissector reported the consumed bytes, pass it to our caller */
if (lua_isnumber(L, -1)) {
- consumed_bytes = lua_tonumber(L, -1);
+ consumed_bytes = (int) lua_tonumber(L, -1);
lua_pop(L, 1); /* pop returned value */
}
}