File webkit2gtk3-angle-s390x.patch of Package webkit2gtk3.36440

From 918cb011e24914930522da2aa3d331d27afd9a88 Mon Sep 17 00:00:00 2001
From: Mike Gorse <mgorse@suse.com>
Date: Wed, 11 Sep 2024 19:01:33 -0500
Subject: [PATCH] angle: Fix assert on s390x

Needs to be submitted upstream to angle
---
 Source/ThirdParty/ANGLE/src/common/mathutil.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Source/ThirdParty/ANGLE/src/common/mathutil.h b/Source/ThirdParty/ANGLE/src/common/mathutil.h
index b3e84276104c..933456bd3749 100644
--- a/Source/ThirdParty/ANGLE/src/common/mathutil.h
+++ b/Source/ThirdParty/ANGLE/src/common/mathutil.h
@@ -550,7 +550,7 @@ inline R roundToNearest(T input)
 {
     static_assert(std::is_floating_point<T>::value);
     static_assert(std::numeric_limits<R>::is_integer);
-#if defined(__aarch64__) || defined(_M_ARM64)
+#if defined(__aarch64__) || defined(_M_ARM64) || defined(__s390x__)
     // On armv8, this expression is compiled to a dedicated round-to-nearest instruction
     return static_cast<R>(std::round(input));
 #else
-- 
2.46.0

openSUSE Build Service is sponsored by