mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 20:29:18 +00:00
AK: Use size_t for ByteBuffer sizes
This matches what we already do for string types.
This commit is contained in:
parent
1dfc66c7cc
commit
88b9fcb976
Notes:
sideshowbarker
2024-07-19 09:12:19 +09:00
Author: https://github.com/awesomekling
Commit: 88b9fcb976
14 changed files with 75 additions and 70 deletions
|
@ -40,7 +40,7 @@ bool CGzip::is_compressed(const ByteBuffer& data)
|
|||
// see: https://tools.ietf.org/html/rfc1952#page-5
|
||||
static Optional<ByteBuffer> get_gzip_payload(const ByteBuffer& data)
|
||||
{
|
||||
int current = 0;
|
||||
size_t current = 0;
|
||||
auto read_byte = [&]() {
|
||||
if (current >= data.size()) {
|
||||
ASSERT_NOT_REACHED();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue