diff options
author | Gunnar Beutner <gbeutner@serenityos.org> | 2021-06-23 22:06:09 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-06-24 09:27:13 +0200 |
commit | 441d6dcdf921bc9bae37411e4006c1decf85f552 (patch) | |
tree | 2cea7131f7e8c56d2753fce6af1457152dfe5931 /Kernel | |
parent | 15e25a8c1fa0eb411c58ca22b97fb4a9c623561c (diff) | |
download | serenity-441d6dcdf921bc9bae37411e4006c1decf85f552.zip |
Kernel: Fix compiling TmpFSInode::write_bytes on x86_64
Diffstat (limited to 'Kernel')
-rw-r--r-- | Kernel/FileSystem/TmpFS.cpp | 2 |
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) { |