summaryrefslogtreecommitdiff
path: root/Kernel/Devices/FullDevice.cpp
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2020-05-23 15:27:33 +0200
committerAndreas Kling <kling@serenityos.org>2020-05-23 15:27:33 +0200
commitdd924b730a7cd0bc1d5997f87e12a1df847f5961 (patch)
tree89431b78fcc151b2a6f01fe1ea11349903f79a55 /Kernel/Devices/FullDevice.cpp
parent2fe6b3725aef79effc9858cc73ab21c571dc5046 (diff)
downloadserenity-dd924b730a7cd0bc1d5997f87e12a1df847f5961.zip
Kernel+LibC: Fix various build issues introduced by ssize_t
Now that ssize_t is derived from size_t, we have to
Diffstat (limited to 'Kernel/Devices/FullDevice.cpp')
-rw-r--r--Kernel/Devices/FullDevice.cpp2
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;
}