1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-14 09:24:57 +00: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:
Tim Schumacher 2023-01-29 13:49:42 +01:00 committed by Andrew Kaster
parent a85c18d3c4
commit 371c51f934
6 changed files with 9 additions and 6 deletions

View file

@ -48,7 +48,7 @@ void FixedMemoryStream::close()
// FIXME: It doesn't make sense to close a memory stream. Therefore, we don't do anything here. Is that fine?
}
ErrorOr<void> FixedMemoryStream::truncate(off_t)
ErrorOr<void> FixedMemoryStream::truncate(size_t)
{
return Error::from_errno(EBADF);
}