mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-21 22:53:37 +00:00
lib/create: use bool for is_power_of_2() return type
Signed-off-by: Susant Sahani <ssahani@redhat.com>
This commit is contained in:
committed by
Richard W.M. Jones
parent
60f60e9f4e
commit
a3a4fc2ba9
@@ -232,7 +232,7 @@ disk_create_raw (guestfs_h *g, const char *filename, int64_t size,
|
||||
}
|
||||
|
||||
/* http://graphics.stanford.edu/~seander/bithacks.html#DetermineIfPowerOf2 */
|
||||
static int
|
||||
static bool
|
||||
is_power_of_2 (unsigned v)
|
||||
{
|
||||
return v && ((v & (v - 1)) == 0);
|
||||
|
||||
Reference in New Issue
Block a user