diff options
Diffstat (limited to 'Kernel/Devices/FullDevice.cpp')
-rw-r--r-- | Kernel/Devices/FullDevice.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/Devices/FullDevice.cpp b/Kernel/Devices/FullDevice.cpp index 52f8ffb38b..895c34fc01 100644 --- a/Kernel/Devices/FullDevice.cpp +++ b/Kernel/Devices/FullDevice.cpp @@ -47,7 +47,7 @@ bool FullDevice::can_read(const FileDescription&, size_t) const ssize_t FullDevice::read(FileDescription&, size_t, u8* buffer, ssize_t size) { - ssize_t count = min(PAGE_SIZE, size); + ssize_t count = min(static_cast<ssize_t>(PAGE_SIZE), size); memset(buffer, 0, (size_t)count); return count; } |