]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
Rust/Lua: cast value to arch-dependant type (fix build on x86, #2197)
authorPierre Chifflier <chifflier@wzdftpd.net>
Wed, 2 Aug 2017 08:00:07 +0000 (10:00 +0200)
committerVictor Julien <victor@inliniac.net>
Thu, 3 Aug 2017 12:27:15 +0000 (14:27 +0200)
rust/src/lua.rs

index a640b11cc153f63eb968494c24c3cc43dd8fb9c8..75e636ccaef27d1331249acc090753fd5cf9357b 100644 (file)
@@ -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);
         }
     }
 }