Skip to content

Commit

Permalink
Fix C.lua_tointeger returning C.integer in some compilers (#122)
Browse files Browse the repository at this point in the history
  • Loading branch information
marko1777 authored Feb 17, 2025
1 parent cd31ab2 commit 248753f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/golua_c_lua51.go
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ import "C"
import "unsafe"

func luaToInteger(s *C.lua_State, n C.int) C.long {
return C.lua_tointeger(s, n)
return C.long(C.lua_tointeger(s, n))
}

func luaToNumber(s *C.lua_State, n C.int) C.double {
Expand Down

0 comments on commit 248753f

Please sign in to comment.