summaryrefslogtreecommitdiff
path: root/src/util/mod.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/util/mod.rs')
-rw-r--r--src/util/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util/mod.rs b/src/util/mod.rs
index 6043c24..46960bd 100644
--- a/src/util/mod.rs
+++ b/src/util/mod.rs
@@ -997,7 +997,7 @@ impl WrappedFailure {
#[cfg(feature = "luau")]
let ud = ffi::lua_newuserdata_t::<Self>(state);
#[cfg(not(feature = "luau"))]
- let ud = ffi::lua_newuserdata(state, std::mem::size_of::<WrappedFailure>()) as *mut Self;
+ let ud = ffi::lua_newuserdata(state, std::mem::size_of::<Self>()) as *mut Self;
ptr::write(ud, WrappedFailure::None);
ud
}