Răsfoiți Sursa

Fixed error: unknown conversion type character 'z' in format

That apparently isn't supported by the mingw compiler
Sam Lantinga 2 luni în urmă
părinte
comite
80be09a804
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  1. 1 1
      src/joystick/hidapi/SDL_report_descriptor.c

+ 1 - 1
src/joystick/hidapi/SDL_report_descriptor.c

@@ -480,7 +480,7 @@ static bool ParseDescriptor(DescriptorContext *ctx, const Uint8 *descriptor, siz
         }
 
 #ifdef DEBUG_DESCRIPTOR
-        SDL_Log("Data: 0x%.2x, size: %zu, type: %d, tag: %d", data, size, type, tag);
+        SDL_Log("Data: 0x%.2x, size: %d, type: %d, tag: %d", data, (int)size, type, tag);
 #endif
         switch (type) {
         case DescriptorItemTypeMain: