Fixed sign conversion warnings in catch_test_case_info_hasher

This commit is contained in:
wmbat 2023-12-05 20:12:02 -05:00
parent 043dfb2e8e
commit 07bd421c31

View File

@ -17,16 +17,16 @@ namespace Catch {
const hash_t prime = 1099511628211u; const hash_t prime = 1099511628211u;
hash_t hash = 14695981039346656037u; hash_t hash = 14695981039346656037u;
for ( const char c : t.name ) { for ( const char c : t.name ) {
hash ^= c; hash ^= static_cast<hash_t>(c);
hash *= prime; hash *= prime;
} }
for ( const char c : t.className ) { for ( const char c : t.className ) {
hash ^= c; hash ^= static_cast<hash_t>(c);
hash *= prime; hash *= prime;
} }
for ( const Tag& tag : t.tags ) { for ( const Tag& tag : t.tags ) {
for ( const char c : tag.original ) { for ( const char c : tag.original ) {
hash ^= c; hash ^= static_cast<hash_t>(c);
hash *= prime; hash *= prime;
} }
} }