summaryrefslogtreecommitdiff
path: root/Kernel
diff options
context:
space:
mode:
authorGunnar Beutner <gbeutner@serenityos.org>2021-06-23 22:06:09 +0200
committerAndreas Kling <kling@serenityos.org>2021-06-24 09:27:13 +0200
commit441d6dcdf921bc9bae37411e4006c1decf85f552 (patch)
tree2cea7131f7e8c56d2753fce6af1457152dfe5931 /Kernel
parent15e25a8c1fa0eb411c58ca22b97fb4a9c623561c (diff)
downloadserenity-441d6dcdf921bc9bae37411e4006c1decf85f552.zip
Kernel: Fix compiling TmpFSInode::write_bytes on x86_64
Diffstat (limited to 'Kernel')
-rw-r--r--Kernel/FileSystem/TmpFS.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/FileSystem/TmpFS.cpp b/Kernel/FileSystem/TmpFS.cpp
index 64e97005fd..a9224363b3 100644
--- a/Kernel/FileSystem/TmpFS.cpp
+++ b/Kernel/FileSystem/TmpFS.cpp
@@ -159,7 +159,7 @@ KResultOr<size_t> TmpFSInode::write_bytes(off_t offset, size_t size, const UserO
off_t old_size = m_metadata.size;
off_t new_size = m_metadata.size;
- if ((offset + size) > new_size)
+ if (offset + size > (size_t)new_size)
new_size = offset + size;
if (new_size > old_size) {