From 4044e86ea4197535b70bc434634faf90cd2317d0 Mon Sep 17 00:00:00 2001 From: Benoit Germain Date: Thu, 24 Oct 2024 14:53:09 +0200 Subject: Strengthen more code with UserValueIndex --- src/compat.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/compat.h') diff --git a/src/compat.h b/src/compat.h index 0b6b12b..0ea35bf 100644 --- a/src/compat.h +++ b/src/compat.h @@ -81,8 +81,8 @@ inline int luaL_optint(lua_State* L_, int n_, lua_Integer d_) #if LUA_VERSION_NUM < 504 void* lua_newuserdatauv(lua_State* L_, size_t sz_, UserValueCount nuvalue_); -int lua_getiuservalue(lua_State* L_, StackIndex idx_, int n_); -int lua_setiuservalue(lua_State* L_, StackIndex idx_, int n_); +int lua_getiuservalue(lua_State* L_, StackIndex idx_, UserValueIndex n_); +int lua_setiuservalue(lua_State* L_, StackIndex idx_, UserValueIndex n_); #define LUA_GNAME "_G" -- cgit v1.2.3-55-g6feb