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
commit 664ca58746
Notes: sideshowbarker 2024-07-17 20:14:21 +09:00
40 changed files with 40 additions and 40 deletions

View file

@ -147,7 +147,7 @@ bool TTY::can_read(const OpenFileDescription&, u64) const
return !m_input_buffer.is_empty();
}
bool TTY::can_write(const OpenFileDescription&, size_t) const
bool TTY::can_write(const OpenFileDescription&, u64) const
{
return true;
}