Browse Source

Fixed warning about implicit conversion in controllermap program.

Philipp Wiesemann 8 years ago
parent
commit
20c846ebe7
1 changed files with 1 additions and 1 deletions
  1. 1 1
      test/controllermap.c

+ 1 - 1
test/controllermap.c

@@ -409,7 +409,7 @@ WatchJoystick(SDL_Joystick * joystick)
     nJoystickID = SDL_JoystickInstanceID(joystick);
     nJoystickID = SDL_JoystickInstanceID(joystick);
 
 
     s_nNumAxes = SDL_JoystickNumAxes(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) {
     for (iIndex = 0; iIndex < s_nNumAxes; ++iIndex) {
         AxisState *pAxisState = &s_arrAxisState[iIndex];
         AxisState *pAxisState = &s_arrAxisState[iIndex];
         Sint16 nInitialValue;
         Sint16 nInitialValue;