test/controllermap.c
changeset 10930 badc1f1411ef
parent 10824 e854440318d2
child 11811 5d94cb6b24d3
     1.1 --- a/test/controllermap.c	Sat Mar 04 23:05:32 2017 +0100
     1.2 +++ b/test/controllermap.c	Sat Mar 04 23:05:47 2017 +0100
     1.3 @@ -409,7 +409,7 @@
     1.4      nJoystickID = SDL_JoystickInstanceID(joystick);
     1.5  
     1.6      s_nNumAxes = SDL_JoystickNumAxes(joystick);
     1.7 -    s_arrAxisState = SDL_calloc(s_nNumAxes, sizeof(*s_arrAxisState));
     1.8 +    s_arrAxisState = (AxisState *)SDL_calloc(s_nNumAxes, sizeof(*s_arrAxisState));
     1.9      for (iIndex = 0; iIndex < s_nNumAxes; ++iIndex) {
    1.10          AxisState *pAxisState = &s_arrAxisState[iIndex];
    1.11          Sint16 nInitialValue;