From 85e6f126124bd2e86be14659f002dad2a431e88c Mon Sep 17 00:00:00 2001 From: William Venner Date: Mon, 20 Sep 2021 20:34:50 +0100 Subject: [PATCH] fix incorrect type --- gmod/src/lua/lua_state.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gmod/src/lua/lua_state.rs b/gmod/src/lua/lua_state.rs index 2c2f61f..e844658 100644 --- a/gmod/src/lua/lua_state.rs +++ b/gmod/src/lua/lua_state.rs @@ -2,7 +2,7 @@ use std::{mem::MaybeUninit, borrow::Cow, ffi::c_void}; use crate::lua::*; -use crate::userdata::UserData; +use crate::userdata::TaggedUserData; #[repr(transparent)] #[derive(Clone, Copy, Debug)] @@ -282,7 +282,7 @@ impl LuaState { } #[inline] - pub unsafe fn check_userdata(&self, arg: i32, name: LuaString) -> *mut UserData { + pub unsafe fn check_userdata(&self, arg: i32, name: LuaString) -> *mut TaggedUserData { (LUA_SHARED.lual_checkudata)(*self, arg, name) as *mut _ }