mirror of
https://github.com/catchorg/Catch2.git
synced 2024-11-22 13:26:10 +01:00
Fixed sign conversion warnings in catch_test_case_info_hasher
This commit is contained in:
parent
043dfb2e8e
commit
07bd421c31
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user