Chromium Code Reviews| Index: base/compiler_specific.h |
| diff --git a/base/compiler_specific.h b/base/compiler_specific.h |
| index bb4c52be45e298b31c73566f8b927445a7a952f4..835e8afc7ed320cfbda054fb81e5931f961ec018 100644 |
| --- a/base/compiler_specific.h |
| +++ b/base/compiler_specific.h |
| @@ -206,7 +206,7 @@ |
| #if !defined(LIKELY) |
| #if defined(COMPILER_GCC) |
| -#define LIKELY(x) __builtin_expect((x), 1) |
| +#define LIKELY(x) __builtin_expect(!!(x), 1) |
| #else |
| #define LIKELY(x) (x) |
| #endif // defined(COMPILER_GCC) |