mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-09 09:34:57 +09:00
AK: Make SeekableStream::truncate()
take a size_t
Similar to the return values earlier, a signed value doesn't really make sense here. Relying on the much more standard `size_t` makes it easier to use Stream in all contexts.
This commit is contained in:
parent
a85c18d3c4
commit
371c51f934
Notes:
sideshowbarker
2024-07-17 05:02:35 +09:00
Author: https://github.com/timschumi
Commit: 371c51f934
Pull-request: https://github.com/SerenityOS/serenity/pull/17248
Reviewed-by: https://github.com/ADKaster ✅
6 changed files with 9 additions and 6 deletions
|
@ -295,7 +295,7 @@ public:
|
|||
|
||||
return result;
|
||||
}
|
||||
virtual ErrorOr<void> truncate(off_t length) override
|
||||
virtual ErrorOr<void> truncate(size_t length) override
|
||||
{
|
||||
return m_helper.stream().truncate(length);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue