mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-21 03:55:24 +00:00
LibGfx: Explicitly cast literals to size_t in JBIG2Loader
width is size_t, so 8 should be that too, not unsigned long long.
This commit is contained in:
parent
9d2d78c57c
commit
51707a4dbd
Notes:
sideshowbarker
2024-07-16 23:59:28 +09:00
Author: https://github.com/bugaevc Commit: https://github.com/SerenityOS/serenity/commit/51707a4dbd Pull-request: https://github.com/SerenityOS/serenity/pull/24099 Reviewed-by: https://github.com/ADKaster ✅
1 changed files with 1 additions and 1 deletions
|
@ -239,7 +239,7 @@ private:
|
|||
|
||||
ErrorOr<NonnullOwnPtr<BitBuffer>> BitBuffer::create(size_t width, size_t height)
|
||||
{
|
||||
size_t pitch = ceil_div(width, 8ull);
|
||||
size_t pitch = ceil_div(width, static_cast<size_t>(8));
|
||||
auto bits = TRY(ByteBuffer::create_uninitialized(pitch * height));
|
||||
return adopt_nonnull_own_or_enomem(new (nothrow) BitBuffer(move(bits), width, height, pitch));
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue