Răsfoiți Sursa

Fixed warning C6340: Mismatch on sign: 'unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'.

Sam Lantinga 1 an în urmă
părinte
comite
41bfcad5d7
1 a modificat fișierele cu 2 adăugiri și 2 ștergeri
  1. 2 2
      src/video/SDL_bmp.c

+ 2 - 2
src/video/SDL_bmp.c

@@ -370,7 +370,7 @@ SDL_Surface *SDL_LoadBMP_RW(SDL_RWops *src, SDL_bool freesrc)
     case 5:
     case 6:
     case 7:
-        SDL_SetError("%d-bpp BMP images are not supported", biBitCount);
+        SDL_SetError("%u bpp BMP images are not supported", biBitCount);
         goto done;
     default:
         break;
@@ -650,7 +650,7 @@ int SDL_SaveBMP_RW(SDL_Surface *surface, SDL_RWops *dst, SDL_bool freedst)
             if (surface->format->BitsPerPixel == 8) {
                 intermediate_surface = surface;
             } else {
-                SDL_SetError("%d bpp BMP files not supported",
+                SDL_SetError("%u bpp BMP files not supported",
                              surface->format->BitsPerPixel);
                 goto done;
             }