summaryrefslogtreecommitdiff
path: root/lib/util
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2022-03-10 23:16:53 +0100
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2022-03-10 23:16:53 +0100
commitfbccd0d022b1ffc3f648761406cb53a32e63deae (patch)
tree6e13f8f9743aadb64e4f96de57fd377351003b0a /lib/util
parent6a19a4f5a755ebde63d7aa3d020460aea58e7ac8 (diff)
Fix warning if __SIZEOF_INT128__ is not defined
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'lib/util')
-rw-r--r--lib/util/fast_urem_by_const.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/util/fast_urem_by_const.h b/lib/util/fast_urem_by_const.h
index 073f9e0..4fb78d3 100644
--- a/lib/util/fast_urem_by_const.h
+++ b/lib/util/fast_urem_by_const.h
@@ -50,7 +50,7 @@
static inline sqfs_u32
_mul32by64_hi(sqfs_u32 a, sqfs_u64 b)
{
-#if __SIZEOF_INT128__ == 16
+#if defined(__SIZEOF_INT128__) && __SIZEOF_INT128__ == 16
return ((__uint128_t) b * a) >> 64;
#else
/*