chiark / gitweb /
bus: rename message "serial" to "cookie"
[elogind.git] / src / shared / util.h
index 57667ef895a4629164a05afe152d2fbc869a39d3..b37072f24a2032402c90e30a4899c70891194cf1 100644 (file)
@@ -712,7 +712,7 @@ static inline void _reset_umask_(struct _umask_struct_ *s) {
              _saved_umask_.quit = true)
 
 static inline unsigned u64log2(uint64_t n) {
-        return (n > 1) ? __builtin_clzll(n) ^ 63U : 0;
+        return (n > 1) ? (unsigned) __builtin_clzll(n) ^ 63U : 0;
 }
 
 static inline bool logind_running(void) {