diff options
author | Idan Horowitz <idan.horowitz@gmail.com> | 2022-01-25 20:17:49 +0200 |
---|---|---|
committer | Idan Horowitz <idan.horowitz@gmail.com> | 2022-01-25 22:41:17 +0200 |
commit | 9ce537d7036bf4aff61d4ce10e7fe0b134c122b3 (patch) | |
tree | 3dc45992db0acbfad56c0555821909432a1f86cd /Kernel/Devices/ConsoleDevice.cpp | |
parent | 0c630d568721f1efba2d5c0ee72c52c08b43d6e8 (diff) | |
download | serenity-9ce537d7036bf4aff61d4ce10e7fe0b134c122b3.zip |
Kernel: Use u64 instead of size_t for File::can_read offset
This ensures offsets will not be truncated on large files on i686.
Diffstat (limited to 'Kernel/Devices/ConsoleDevice.cpp')
-rw-r--r-- | Kernel/Devices/ConsoleDevice.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/Devices/ConsoleDevice.cpp b/Kernel/Devices/ConsoleDevice.cpp index b589d62a95..e2cb009e10 100644 --- a/Kernel/Devices/ConsoleDevice.cpp +++ b/Kernel/Devices/ConsoleDevice.cpp @@ -32,7 +32,7 @@ UNMAP_AFTER_INIT ConsoleDevice::~ConsoleDevice() { } -bool ConsoleDevice::can_read(const Kernel::OpenFileDescription&, size_t) const +bool ConsoleDevice::can_read(const Kernel::OpenFileDescription&, u64) const { return false; } |