1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 03:47:34 +00:00

Kernel: Use u64 instead of size_t for File::can_write offset

This ensures offsets will not be truncated on large files on i686.
This commit is contained in:
Idan Horowitz 2022-01-25 20:19:35 +02:00
parent 9ce537d703
commit 664ca58746
40 changed files with 40 additions and 40 deletions

View file

@ -85,7 +85,7 @@ ErrorOr<size_t> SlavePTY::on_tty_write(const UserOrKernelBuffer& data, size_t si
return m_master->on_slave_write(data, size);
}
bool SlavePTY::can_write(const OpenFileDescription&, size_t) const
bool SlavePTY::can_write(const OpenFileDescription&, u64) const
{
return m_master->can_write_from_slave();
}