diff --git a/Cargo.lock b/Cargo.lock index 6c4edfc..1e9fd2f 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -68,7 +68,7 @@ dependencies = [ [[package]] name = "gmod" -version = "0.1.3" +version = "0.1.4" dependencies = [ "cstr", "ctor", diff --git a/gmod/Cargo.toml b/gmod/Cargo.toml index 3eb8e9d..652ca37 100644 --- a/gmod/Cargo.toml +++ b/gmod/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "gmod" -version = "0.1.3" +version = "0.1.4" authors = ["William Venner "] edition = "2018" license = "MIT" diff --git a/gmod/src/lua/lua_state.rs b/gmod/src/lua/lua_state.rs index 3343498..bc08af0 100644 --- a/gmod/src/lua/lua_state.rs +++ b/gmod/src/lua/lua_state.rs @@ -272,7 +272,7 @@ impl LuaState { } #[inline] - pub unsafe fn check_userdata(&self, arg: i32, name: LuaString) -> *const c_void { + pub unsafe fn check_userdata(&self, arg: i32, name: LuaString) -> *mut c_void { (LUA_SHARED.lual_checkudata)(*self, arg, name) }