From: Pierre Chifflier Date: Wed, 2 Aug 2017 08:00:07 +0000 (+0200) Subject: Rust/Lua: cast value to arch-dependant type (fix build on x86, #2197) X-Git-Tag: suricata-4.0.1~40 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e4129c15684a351e0203cd27f236a16b41831992;p=thirdparty%2Fsuricata.git Rust/Lua: cast value to arch-dependant type (fix build on x86, #2197) --- diff --git a/rust/src/lua.rs b/rust/src/lua.rs index a640b11cc1..75e636ccae 100644 --- a/rust/src/lua.rs +++ b/rust/src/lua.rs @@ -43,7 +43,7 @@ impl LuaState { pub fn settable(&self, idx: i64) { unsafe { - lua_settable(self.lua, idx); + lua_settable(self.lua, idx as c_long); } } @@ -55,7 +55,7 @@ impl LuaState { pub fn pushinteger(&self, val: i64) { unsafe { - lua_pushinteger(self.lua, val); + lua_pushinteger(self.lua, val as c_long); } } }