1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 22:07:35 +00:00

LibGfx: Misc 32-bit build fixes

This commit is contained in:
Sergey Bugaev 2023-09-03 23:25:27 +03:00 committed by Andrew Kaster
parent 79022090bf
commit 8ebddc1ff6
3 changed files with 3 additions and 3 deletions

View file

@ -454,7 +454,7 @@ static ErrorOr<NonnullRefPtr<Bitmap>> decode_webp_chunk_VP8L_image(ImageKind ima
return Error::from_string_literal("WebPImageDecoderPlugin: Backward reference distance out of bounds");
}
if (end - pixel < length) {
if (end - pixel < static_cast<ptrdiff_t>(length)) {
dbgln_if(WEBP_DEBUG, "invalid length, {} < {}", end - pixel, length);
return Error::from_string_literal("WebPImageDecoderPlugin: Backward reference length out of bounds");
}