mirror of
https://github.com/catchorg/Catch2.git
synced 2024-11-22 21:36:11 +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;
|
||||
hash_t hash = 14695981039346656037u;
|
||||
for ( const char c : t.name ) {
|
||||
hash ^= c;
|
||||
hash ^= static_cast<hash_t>(c);
|
||||
hash *= prime;
|
||||
}
|
||||
for ( const char c : t.className ) {
|
||||
hash ^= c;
|
||||
hash ^= static_cast<hash_t>(c);
|
||||
hash *= prime;
|
||||
}
|
||||
for ( const Tag& tag : t.tags ) {
|
||||
for ( const char c : tag.original ) {
|
||||
hash ^= c;
|
||||
hash ^= static_cast<hash_t>(c);
|
||||
hash *= prime;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user