mirror of
https://github.com/Relintai/sdl2_frt.git
synced 2025-01-12 05:41:10 +01:00
Fixed warning about implicit conversion in controllermap program.
This commit is contained in:
parent
72fdf62980
commit
20c846ebe7
@ -409,7 +409,7 @@ WatchJoystick(SDL_Joystick * joystick)
|
||||
nJoystickID = SDL_JoystickInstanceID(joystick);
|
||||
|
||||
s_nNumAxes = SDL_JoystickNumAxes(joystick);
|
||||
s_arrAxisState = SDL_calloc(s_nNumAxes, sizeof(*s_arrAxisState));
|
||||
s_arrAxisState = (AxisState *)SDL_calloc(s_nNumAxes, sizeof(*s_arrAxisState));
|
||||
for (iIndex = 0; iIndex < s_nNumAxes; ++iIndex) {
|
||||
AxisState *pAxisState = &s_arrAxisState[iIndex];
|
||||
Sint16 nInitialValue;
|
||||
|
Loading…
Reference in New Issue
Block a user