diff options
author | herbert <herbert@gondor.apana.org.au> | 2005-02-28 22:02:49 +1100 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2005-09-26 18:33:04 +1000 |
commit | bd9e6751f3f9933ee385b67d384791f007f1b417 (patch) | |
tree | f72645091452c9c400285d1cae1f2f7a06521842 /src | |
parent | Removed expcmd built-in. (diff) | |
download | dash-bd9e6751f3f9933ee385b67d384791f007f1b417.tar.gz dash-bd9e6751f3f9933ee385b67d384791f007f1b417.zip |
Normalise input in likely/unlikely macros.
Diffstat (limited to '')
-rw-r--r-- | src/shell.h | 4 |
1 files changed, 2 insertions, 2 deletions
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) |