From b68b6f731b5053c7ede572b2d9a013d1f9fe31e2 Mon Sep 17 00:00:00 2001 From: Daniel Kamil Kozar Date: Mon, 31 Oct 2016 01:06:18 +0100 Subject: [PATCH] Use bool instead of int for bitcount_popcnt_available's return value --- src/util/util.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/util/util.c b/src/util/util.c index 5a81caccb8..0c89f91d1d 100644 --- a/src/util/util.c +++ b/src/util/util.c @@ -203,7 +203,7 @@ int bitscanforward(int source) #define OpenRCT2_POPCNT_MSVC #endif -static int bitcount_popcnt_available() +static bool bitcount_popcnt_available() { // POPCNT support is declared as the 23rd bit of ECX with CPUID(EAX = 1). #if defined(OpenRCT2_POPCNT_GNUC) @@ -217,7 +217,7 @@ static int bitcount_popcnt_available() __cpuid(regs, 1); return (regs[2] & (1 << 23)); #else - return 0; + return false; #endif }