mirror of https://github.com/xqemu/xqemu.git
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>
This commit is contained in:
parent
aa5982e0fd
commit
e52eeb468d
|
@ -486,7 +486,7 @@ static inline uint64_t revbit64(uint64_t x)
|
||||||
static inline bool is_power_of_2(uint64_t value)
|
static inline bool is_power_of_2(uint64_t value)
|
||||||
{
|
{
|
||||||
if (!value) {
|
if (!value) {
|
||||||
return 0;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
return !(value & (value - 1));
|
return !(value & (value - 1));
|
||||||
|
|
Loading…
Reference in New Issue