@@ -70,11 +70,8 @@ pub const LUA_MINSTACK: c_int = 20;
7070/// A Lua number, usually equivalent to `f64`.
7171pub type lua_Number = c_double ;
7272
73- /// A Lua integer, usually equivalent to `i64`
74- #[ cfg( target_pointer_width = "32" ) ]
75- pub type lua_Integer = i32 ;
76- #[ cfg( target_pointer_width = "64" ) ]
77- pub type lua_Integer = i64 ;
73+ /// A Lua integer, equivalent to `i32`.
74+ pub type lua_Integer = c_int ;
7875
7976/// A Lua unsigned integer, equivalent to `u32`.
8077pub type lua_Unsigned = c_uint ;
@@ -139,7 +136,7 @@ extern "C-unwind" {
139136
140137 pub fn lua_tonumberx ( L : * mut lua_State , idx : c_int , isnum : * mut c_int ) -> lua_Number ;
141138 #[ link_name = "lua_tointegerx" ]
142- pub fn lua_tointegerx_ ( L : * mut lua_State , idx : c_int , isnum : * mut c_int ) -> c_int ;
139+ pub fn lua_tointegerx_ ( L : * mut lua_State , idx : c_int , isnum : * mut c_int ) -> lua_Integer ;
143140 pub fn lua_tounsignedx ( L : * mut lua_State , idx : c_int , isnum : * mut c_int ) -> lua_Unsigned ;
144141 pub fn lua_tovector ( L : * mut lua_State , idx : c_int ) -> * const c_float ;
145142 pub fn lua_toboolean ( L : * mut lua_State , idx : c_int ) -> c_int ;
@@ -163,8 +160,7 @@ extern "C-unwind" {
163160 //
164161 pub fn lua_pushnil ( L : * mut lua_State ) ;
165162 pub fn lua_pushnumber ( L : * mut lua_State , n : lua_Number ) ;
166- #[ link_name = "lua_pushinteger" ]
167- pub fn lua_pushinteger_ ( L : * mut lua_State , n : c_int ) ;
163+ pub fn lua_pushinteger ( L : * mut lua_State , n : lua_Integer ) ;
168164 pub fn lua_pushunsigned ( L : * mut lua_State , n : lua_Unsigned ) ;
169165 #[ cfg( not( feature = "luau-vector4" ) ) ]
170166 pub fn lua_pushvector ( L : * mut lua_State , x : c_float , y : c_float , z : c_float ) ;
@@ -314,13 +310,13 @@ extern "C-unwind" {
314310//
315311
316312#[ inline( always) ]
317- pub unsafe fn lua_tonumber ( L : * mut lua_State , idx : c_int ) -> lua_Number {
318- lua_tonumberx ( L , idx , ptr:: null_mut ( ) )
313+ pub unsafe fn lua_tonumber ( L : * mut lua_State , i : c_int ) -> lua_Number {
314+ lua_tonumberx ( L , i , ptr:: null_mut ( ) )
319315}
320316
321317#[ inline( always) ]
322- pub unsafe fn lua_tointeger_ ( L : * mut lua_State , idx : c_int ) -> c_int {
323- lua_tointegerx_ ( L , idx , ptr:: null_mut ( ) )
318+ pub unsafe fn lua_tointeger_ ( L : * mut lua_State , i : c_int ) -> lua_Integer {
319+ lua_tointegerx_ ( L , i , ptr:: null_mut ( ) )
324320}
325321
326322#[ inline( always) ]
0 commit comments