File a95febc7.patch of Package OpenColorIO

From a95febc70ee964b337a8e4a79c909ab425b2e8fb Mon Sep 17 00:00:00 2001
From: phanium <91544758+phanen@users.noreply.github.com>
Date: Mon, 22 Jan 2024 13:04:43 +0800
Subject: [PATCH] Fix narrowing conversion error on riscv64 (#1924)

Signed-off-by: phancb <nxhsdu@qq.com>
Co-authored-by: Doug Walker <doug.walker@autodesk.com>
---
 tests/utils/StringUtils_tests.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/utils/StringUtils_tests.cpp b/tests/utils/StringUtils_tests.cpp
index 0154a4fc1..e258832b1 100644
--- a/tests/utils/StringUtils_tests.cpp
+++ b/tests/utils/StringUtils_tests.cpp
@@ -53,7 +53,7 @@ OCIO_ADD_TEST(StringUtils, trim)
 
     {
         // Test that no assert happens when the Trim argument is not an unsigned char (see issue #1874).
-        constexpr char ref2[]{ -1, -2, -3, '\0' };
+        constexpr char ref2[]{ char(-1), char(-2), char(-3), '\0' };
         const std::string str = StringUtils::Trim(ref2);
     }
 }
openSUSE Build Service is sponsored by