fix incorrect type

This commit is contained in:
William Venner 2021-09-20 20:34:50 +01:00
parent 7ed864a789
commit 85e6f12612
1 changed files with 2 additions and 2 deletions

View File

@ -2,7 +2,7 @@ use std::{mem::MaybeUninit, borrow::Cow, ffi::c_void};
use crate::lua::*; use crate::lua::*;
use crate::userdata::UserData; use crate::userdata::TaggedUserData;
#[repr(transparent)] #[repr(transparent)]
#[derive(Clone, Copy, Debug)] #[derive(Clone, Copy, Debug)]
@ -282,7 +282,7 @@ impl LuaState {
} }
#[inline] #[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 _ (LUA_SHARED.lual_checkudata)(*self, arg, name) as *mut _
} }