From 441d6dcdf921bc9bae37411e4006c1decf85f552 Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Wed, 23 Jun 2021 22:06:09 +0200 Subject: Kernel: Fix compiling TmpFSInode::write_bytes on x86_64 --- Kernel/FileSystem/TmpFS.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Kernel') 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 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) { -- cgit v1.2.3