Просмотр исходного кода

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

That apparently isn't supported by the mingw compiler
Sam Lantinga 2 месяцев назад
Родитель
Сommit
80be09a804
1 измененных файлов с 1 добавлено и 1 удалено
  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: