Fix mutability of userdata void* pointer
This commit is contained in:
parent
761b2b050a
commit
3b74aa03e8
|
@ -68,7 +68,7 @@ dependencies = [
|
|||
|
||||
[[package]]
|
||||
name = "gmod"
|
||||
version = "0.1.3"
|
||||
version = "0.1.4"
|
||||
dependencies = [
|
||||
"cstr",
|
||||
"ctor",
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
[package]
|
||||
name = "gmod"
|
||||
version = "0.1.3"
|
||||
version = "0.1.4"
|
||||
authors = ["William Venner <william@venner.io>"]
|
||||
edition = "2018"
|
||||
license = "MIT"
|
||||
|
|
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue