Fixed warning about implicit conversion in controllermap program.
authorPhilipp Wiesemann <philipp.wiesemann@arcor.de>
Sat, 04 Mar 2017 23:05:47 +0100
changeset 10930badc1f1411ef
parent 10929 3a44f7762496
child 10931 a364af650bf1
Fixed warning about implicit conversion in controllermap program.
test/controllermap.c
     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;