Fixed warning C4389: '!=': signed/unsigned mismatch

main
Sam Lantinga 2023-08-25 08:49:49 -07:00
parent 5755de07a6
commit 4355f9cec5
1 changed files with 1 additions and 1 deletions

View File

@ -560,7 +560,7 @@ SDL_Surface *SDL_LoadBMP_RW(SDL_RWops *src, SDL_bool freesrc)
} break;
default:
if (SDL_RWread(src, bits, surface->pitch) != surface->pitch) {
if (SDL_RWread(src, bits, surface->pitch) != (size_t)surface->pitch) {
goto done;
}
if (biBitCount == 8 && palette && biClrUsed < (1u << biBitCount)) {