瀏覽代碼

Cygwin: Reduce warning

[sdl-ci-filter cygwin]
[sdl-ci-filter msys2-*]
[sdl-ci-filter msvc-*]
Tim Stahlhut 3 月之前
父節點
當前提交
bb74b618ac
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/joystick/windows/SDL_dinputjoystick.c

+ 1 - 1
src/joystick/windows/SDL_dinputjoystick.c

@@ -231,7 +231,7 @@ const DIDATAFORMAT SDL_c_dfDIJoystick2 = {
 // Convert a DirectInput return code to a text message
 static bool SetDIerror(const char *function, HRESULT code)
 {
-    return SDL_SetError("%s() DirectX error 0x%8.8lx", function, code);
+    return SDL_SetError("%s() DirectX error 0x%8.8" SDL_PRIxSLONG, function, code);
 }
 
 static bool SDL_IsXInputDevice(Uint16 vendor_id, Uint16 product_id, const char *hidPath)