mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-09-06 03:18:13 +00:00
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:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user