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

This commit is contained in:
Sam Lantinga
2023-12-04 20:58:58 -08:00
parent 54dc73aa88
commit 41bfcad5d7

View File

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