Closed seletskiy closed 4 years ago
Line in question:
https://github.com/veandco/go-sdl2/blob/0f0aff6510ff6b885d668509789fbf6120e47d8c/sdl/events.go#L564
I believe this should be declared as int32 instead of int, since it will be silently compiled as int64 on 64-bit systems.
int32
int
int64
In particular, joystick-input example from go-sdl2-examples fails with panic because of that.
joystick-input
go-sdl2-examples
Hi @seletskiy, thank you for catching that. I have changed it to use sdl.JoystickID which is an int32 in the latest patch version!
sdl.JoystickID
@veeableful: nice one!
Line in question:
https://github.com/veandco/go-sdl2/blob/0f0aff6510ff6b885d668509789fbf6120e47d8c/sdl/events.go#L564
I believe this should be declared as
int32
instead ofint
, since it will be silently compiled asint64
on 64-bit systems.In particular,
joystick-input
example fromgo-sdl2-examples
fails with panic because of that.