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

This ensures offsets will not be truncated on large files on i686.
This commit is contained in:
Idan Horowitz 2022-01-25 20:17:49 +02:00
commit 9ce537d703
Notes: sideshowbarker 2024-07-17 20:14:26 +09:00
47 changed files with 47 additions and 47 deletions

View file

@ -139,7 +139,7 @@ void TTY::process_output(u8 ch, Functor put_char)
}
}
bool TTY::can_read(const OpenFileDescription&, size_t) const
bool TTY::can_read(const OpenFileDescription&, u64) const
{
if (in_canonical_mode()) {
return m_available_lines > 0;