sd-device-monitor: use UINT64_C() macro

This commit is contained in:
Yu Watanabe
2021-03-05 06:35:24 +09:00
parent 79c397a12e
commit 0fa28efea6
+4 -4
View File
@@ -508,10 +508,10 @@ static uint64_t string_bloom64(const char *str) {
uint64_t bits = 0;
uint32_t hash = string_hash32(str);
bits |= 1LLU << (hash & 63);
bits |= 1LLU << ((hash >> 6) & 63);
bits |= 1LLU << ((hash >> 12) & 63);
bits |= 1LLU << ((hash >> 18) & 63);
bits |= UINT64_C(1) << (hash & 63);
bits |= UINT64_C(1) << ((hash >> 6) & 63);
bits |= UINT64_C(1) << ((hash >> 12) & 63);
bits |= UINT64_C(1) << ((hash >> 18) & 63);
return bits;
}