libreoffice/fix-32-bit-build.patch

14 lines
598 B
Diff

diff --git a/sal/osl/unx/file.cxx b/sal/osl/unx/file.cxx
index 0ca8822016e1..3f37ce03c73c 100644
--- a/sal/osl/unx/file.cxx
+++ b/sal/osl/unx/file.cxx
@@ -790,7 +790,7 @@ static void osl_file_adjustLockFlags(const OString& path, int *flags, sal_uInt32
// write lock and not a read lock).
// Fixes the following bug:
// https://bugs.documentfoundation.org/show_bug.cgi?id=55004
- switch (aFileStatFs.f_type) {
+ switch (static_cast<size_t>(aFileStatFs.f_type)) {
case SMB_SUPER_MAGIC:
case CIFS_SUPER_MAGIC:
case SMB2_SUPER_MAGIC: