]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
sd-device-monitor: use UINT64_C() macro
authorYu Watanabe <watanabe.yu+github@gmail.com>
Sun, 21 Feb 2021 00:14:00 +0000 (09:14 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 4 Mar 2021 21:35:24 +0000 (06:35 +0900)
src/libsystemd/sd-device/device-monitor.c

index 008522494b1fab190877c75c62ee755a91c77f62..bf00c499d29c33b54726d6581576d0e20bdd5765 100644 (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;
 }