Fix mutability of userdata void* pointer

This commit is contained in:
William Venner 2021-09-18 19:18:19 +01:00
parent 761b2b050a
commit 3b74aa03e8
3 changed files with 3 additions and 3 deletions

2
Cargo.lock generated
View File

@ -68,7 +68,7 @@ dependencies = [
[[package]]
name = "gmod"
version = "0.1.3"
version = "0.1.4"
dependencies = [
"cstr",
"ctor",

View File

@ -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"

View File

@ -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)
}