Make a few coersions to bool explicit
[folly.git] / folly / CpuId.h
index 24d4d97ee979d52f8048a80c991eb53c47245059..5e06513ccad44326d506c2e114d621fa70e79d84 100644 (file)
@@ -99,7 +99,7 @@ class CpuId {
 
 #define X(name, r, bit)                   \
   FOLLY_ALWAYS_INLINE bool name() const { \
-    return (r) & (1U << bit);             \
+    return ((r) & (1U << bit)) != 0;      \
   }
 
 // cpuid(1): Processor Info and Feature Bits.