diff options
author | kyren <kerriganw@gmail.com> | 2018-02-12 13:42:13 -0500 |
---|---|---|
committer | kyren <kerriganw@gmail.com> | 2018-02-12 13:54:31 -0500 |
commit | c22aae461b69e1ea5f4cdc746ec577340f344baa (patch) | |
tree | a02df5fda277ece693b0ca5c1f6dabcb585b27fd /src/userdata.rs | |
parent | c4b3170e2bf4afe700c083d4316d3214cce44d66 (diff) | |
download | mlua-c22aae461b69e1ea5f4cdc746ec577340f344baa.zip |
Some changes for panic correctness, stack usage correctness, and speed
Diffstat (limited to 'src/userdata.rs')
-rw-r--r-- | src/userdata.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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)?; |