summaryrefslogtreecommitdiff
path: root/src/userdata.rs
diff options
context:
space:
mode:
authorkyren <kerriganw@gmail.com>2018-02-12 13:42:13 -0500
committerkyren <kerriganw@gmail.com>2018-02-12 13:54:31 -0500
commitc22aae461b69e1ea5f4cdc746ec577340f344baa (patch)
treea02df5fda277ece693b0ca5c1f6dabcb585b27fd /src/userdata.rs
parentc4b3170e2bf4afe700c083d4316d3214cce44d66 (diff)
downloadmlua-c22aae461b69e1ea5f4cdc746ec577340f344baa.zip
Some changes for panic correctness, stack usage correctness, and speed
Diffstat (limited to 'src/userdata.rs')
-rw-r--r--src/userdata.rs2
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)?;