mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 17:57:35 +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:
parent
9ce537d703
commit
664ca58746
40 changed files with 40 additions and 40 deletions
|
@ -115,7 +115,7 @@ ErrorOr<size_t> ConsolePort::read(OpenFileDescription& desc, u64, UserOrKernelBu
|
|||
return bytes_copied;
|
||||
}
|
||||
|
||||
bool ConsolePort::can_write(const OpenFileDescription&, size_t) const
|
||||
bool ConsolePort::can_write(const OpenFileDescription&, u64) const
|
||||
{
|
||||
return m_console.get_queue(m_transmit_queue).has_free_slots() && m_transmit_buffer->has_space();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue