summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkyren <kerriganw@gmail.com>2017-12-03 23:25:03 -0500
committerkyren <kerriganw@gmail.com>2017-12-03 23:25:03 -0500
commite80e7d45405fec6a1ce57dfa567199f7f592bbb6 (patch)
treeb82574371e52e90931c032290277e2f005f70079
parent67e8907f196cf00d1908747e975facbad25c3f7b (diff)
downloadmlua-e80e7d45405fec6a1ce57dfa567199f7f592bbb6.zip
missing push_string calls in util
-rw-r--r--src/util.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/util.rs b/src/util.rs
index 6c18218..1f49378 100644
--- a/src/util.rs
+++ b/src/util.rs
@@ -588,11 +588,11 @@ unsafe fn get_panic_metatable(state: *mut ffi::lua_State) -> c_int {
);
ffi::lua_pushvalue(state, -2);
- push_string(state, "__gc");
+ ffi::lua_pushstring(state, cstr!("__gc"));
ffi::lua_pushcfunction(state, userdata_destructor::<WrappedPanic>);
ffi::lua_settable(state, -3);
- push_string(state, "__metatable");
+ ffi::lua_pushstring(state, cstr!("__metatable"));
ffi::lua_pushboolean(state, 0);
ffi::lua_settable(state, -3);