diff options
-rw-r--r-- | include/o3tl/safeint.hxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/o3tl/safeint.hxx b/include/o3tl/safeint.hxx index 0ed36c910fa3..9df92ea1a9d1 100644 --- a/include/o3tl/safeint.hxx +++ b/include/o3tl/safeint.hxx @@ -113,7 +113,7 @@ template<typename T> inline bool checked_sub(T a, T b, T& result) return !msl::utilities::SafeSubtract(a, b, result); } -#elif (defined __GNUC__ && !defined __clang__) || (__has_builtin(__builtin_mul_overflow) && !(defined ANDROID && defined __clang__) && !(defined(__clang__) && defined(__i386__))) +#elif (defined __GNUC__ && !defined __clang__) || (__has_builtin(__builtin_mul_overflow) && !(defined ANDROID && defined __clang__) && !(defined(__clang__) && (defined(__arm__) || defined(__i386__)))) // 32-bit clang fails with undefined reference to `__mulodi4' template<typename T> inline bool checked_multiply(T a, T b, T& result) |