Skip to content

Commit

Permalink
joystick/gdk/SDL_gameinputjoystick.c: fix build errors due to -Wformat
Browse files Browse the repository at this point in the history
  • Loading branch information
sezero committed Nov 16, 2024
1 parent af6ce62 commit 0f9e551
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/joystick/gdk/SDL_gameinputjoystick.c
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ static bool GAMEINPUT_JoystickInit(void)

hR = GameInputCreateFunc(&g_pGameInput);
if (FAILED(hR)) {
return SDL_SetError("GameInputCreate failure with HRESULT of %08X", hR);
return SDL_SetError("GameInputCreate failure with HRESULT of %08lX", hR);
}
}

Expand All @@ -274,7 +274,7 @@ static bool GAMEINPUT_JoystickInit(void)
GAMEINPUT_InternalJoystickDeviceCallback,
&g_GameInputCallbackToken);
if (FAILED(hR)) {
return SDL_SetError("IGameInput::RegisterDeviceCallback failure with HRESULT of %08X", hR);
return SDL_SetError("IGameInput::RegisterDeviceCallback failure with HRESULT of %08lX", hR);
}

// Calculate the relative offset between SDL timestamps and GameInput timestamps
Expand Down

0 comments on commit 0f9e551

Please sign in to comment.