mirror of
https://github.com/greg7mdp/parallel-hashmap.git
synced 2026-08-30 17:10:40 +08:00
fix warnings - issue #21
This commit is contained in:
Vendored
+1
-1
@@ -289,7 +289,7 @@ inline __m128i _mm_cmpgt_epi8_fixed(__m128i a, __m128i b) {
|
||||
#pragma GCC diagnostic ignored "-Woverflow"
|
||||
|
||||
if (std::is_unsigned<char>::value) {
|
||||
const __m128i mask = _mm_set1_epi8(0x80);
|
||||
const __m128i mask = _mm_set1_epi8(static_cast<char>(0x80));
|
||||
const __m128i diff = _mm_subs_epi8(b, a);
|
||||
return _mm_cmpeq_epi8(_mm_and_si128(diff, mask), mask);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user