diff --git a/include/odp/api/spec/hints.h b/include/odp/api/spec/hints.h index 032b483df0..fa5b1b9bb4 100644 --- a/include/odp/api/spec/hints.h +++ b/include/odp/api/spec/hints.h @@ -61,7 +61,7 @@ extern "C" { /** * Branch unlikely taken */ -#define odp_unlikely(x) __builtin_expect((x), 0) +#define odp_unlikely(x) __builtin_expect(!!(x), 0) /* * __builtin_prefetch (const void *addr, rw, locality)