From dd924b730a7cd0bc1d5997f87e12a1df847f5961 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Sat, 23 May 2020 15:27:33 +0200 Subject: Kernel+LibC: Fix various build issues introduced by ssize_t Now that ssize_t is derived from size_t, we have to --- Kernel/Devices/FullDevice.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Kernel/Devices/FullDevice.cpp') 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(PAGE_SIZE), size); memset(buffer, 0, (size_t)count); return count; } -- cgit v1.2.3