From c22aae461b69e1ea5f4cdc746ec577340f344baa Mon Sep 17 00:00:00 2001 From: kyren Date: Mon, 12 Feb 2018 13:42:13 -0500 Subject: Some changes for panic correctness, stack usage correctness, and speed --- src/userdata.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/userdata.rs') diff --git a/src/userdata.rs b/src/userdata.rs index 7929de5..e29aa59 100644 --- a/src/userdata.rs +++ b/src/userdata.rs @@ -470,7 +470,7 @@ impl<'lua> AnyUserData<'lua> { let lua = self.0.lua; unsafe { stack_err_guard(lua.state, 0, || { - check_stack(lua.state, 2); + check_stack(lua.state, 3); lua.push_ref(lua.state, &self.0); ffi::lua_getuservalue(lua.state, -1); let res = V::from_lua(lua.pop_value(lua.state), lua)?; -- cgit v1.2.3