Skip to content

Commit

Permalink
Fixed warning about implicit conversion in controllermap program.
Browse files Browse the repository at this point in the history
  • Loading branch information
philippwiesemann committed Mar 4, 2017
1 parent 72fdf62 commit 20c846e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/controllermap.c
Expand Up @@ -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;
Expand Down

0 comments on commit 20c846e

Please sign in to comment.