diff options
author | Andreas Kling <kling@serenityos.org> | 2020-05-23 15:27:33 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-05-23 15:27:33 +0200 |
commit | dd924b730a7cd0bc1d5997f87e12a1df847f5961 (patch) | |
tree | 89431b78fcc151b2a6f01fe1ea11349903f79a55 /Kernel/Devices/RandomDevice.cpp | |
parent | 2fe6b3725aef79effc9858cc73ab21c571dc5046 (diff) | |
download | serenity-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/RandomDevice.cpp')
-rw-r--r-- | Kernel/Devices/RandomDevice.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/Devices/RandomDevice.cpp b/Kernel/Devices/RandomDevice.cpp index ac4fa4a6b8..11896ee970 100644 --- a/Kernel/Devices/RandomDevice.cpp +++ b/Kernel/Devices/RandomDevice.cpp @@ -52,7 +52,7 @@ ssize_t RandomDevice::read(FileDescription&, size_t, u8* buffer, ssize_t size) ssize_t RandomDevice::write(FileDescription&, size_t, const u8*, ssize_t size) { // FIXME: Use input for entropy? I guess that could be a neat feature? - return min(PAGE_SIZE, size); + return min(static_cast<ssize_t>(PAGE_SIZE), size); } } |