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