mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 20:29:18 +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
Notes:
sideshowbarker
2024-07-17 20:14:21 +09:00
Author: https://github.com/IdanHo
Commit: 664ca58746
Pull-request: https://github.com/SerenityOS/serenity/pull/12132
Reviewed-by: https://github.com/bgianfo ✅
Reviewed-by: https://github.com/tomuta ✅
40 changed files with 40 additions and 40 deletions
|
@ -77,7 +77,7 @@ ErrorOr<size_t> SerialDevice::read(OpenFileDescription&, u64, UserOrKernelBuffer
|
|||
});
|
||||
}
|
||||
|
||||
bool SerialDevice::can_write(const OpenFileDescription&, size_t) const
|
||||
bool SerialDevice::can_write(const OpenFileDescription&, u64) const
|
||||
{
|
||||
return (get_line_status() & EmptyTransmitterHoldingRegister) != 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue