diff options
Diffstat (limited to 'src/ffi/lua.rs')
-rw-r--r-- | src/ffi/lua.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ffi/lua.rs b/src/ffi/lua.rs index a48be1a..41ef9c6 100644 --- a/src/ffi/lua.rs +++ b/src/ffi/lua.rs @@ -64,7 +64,7 @@ pub use super::compat53::lua_getglobal; #[cfg(any(feature = "lua54", feature = "lua53", feature = "lua52"))] #[inline(always)] -pub fn lua_upvalueindex(i: c_int) -> c_int { +pub const fn lua_upvalueindex(i: c_int) -> c_int { LUA_REGISTRYINDEX - i } |