From 07bd421c3161904d89482c8be2744afcde27ef4c Mon Sep 17 00:00:00 2001 From: wmbat Date: Tue, 5 Dec 2023 20:12:02 -0500 Subject: [PATCH] Fixed sign conversion warnings in catch_test_case_info_hasher --- src/catch2/internal/catch_test_case_info_hasher.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/catch2/internal/catch_test_case_info_hasher.cpp b/src/catch2/internal/catch_test_case_info_hasher.cpp index e1731ebe..ed5758e7 100644 --- a/src/catch2/internal/catch_test_case_info_hasher.cpp +++ b/src/catch2/internal/catch_test_case_info_hasher.cpp @@ -17,16 +17,16 @@ namespace Catch { const hash_t prime = 1099511628211u; hash_t hash = 14695981039346656037u; for ( const char c : t.name ) { - hash ^= c; + hash ^= static_cast(c); hash *= prime; } for ( const char c : t.className ) { - hash ^= c; + hash ^= static_cast(c); hash *= prime; } for ( const Tag& tag : t.tags ) { for ( const char c : tag.original ) { - hash ^= c; + hash ^= static_cast(c); hash *= prime; } }