Parcourir la source

host-utils: Prefer 'false' for bool type

Mixing '0' and 'bool' looks stupid.

Signed-off-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
Eric Blake il y a 9 ans
Parent
commit
e52eeb468d
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      include/qemu/host-utils.h

+ 1 - 1
include/qemu/host-utils.h

@@ -486,7 +486,7 @@ static inline uint64_t revbit64(uint64_t x)
 static inline bool is_power_of_2(uint64_t value)
 {
     if (!value) {
-        return 0;
+        return false;
     }
 
     return !(value & (value - 1));