From bd9e6751f3f9933ee385b67d384791f007f1b417 Mon Sep 17 00:00:00 2001 From: herbert Date: Mon, 28 Feb 2005 22:02:49 +1100 Subject: Normalise input in likely/unlikely macros. --- src/shell.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/shell.h b/src/shell.h index 01c54d7..7034e29 100644 --- a/src/shell.h +++ b/src/shell.h @@ -96,5 +96,5 @@ extern char nullstr[1]; /* null string */ #define __builtin_expect(x, expected_value) (x) #endif -#define likely(x) __builtin_expect((x),1) -#define unlikely(x) __builtin_expect((x),0) +#define likely(x) __builtin_expect(!!(x),1) +#define unlikely(x) __builtin_expect(!!(x),0) -- cgit 1.4.1