summaryrefslogtreecommitdiff
path: root/stand
diff options
context:
space:
mode:
authorBrandon Bergren <bdragon@FreeBSD.org>2020-09-22 23:27:09 +0000
committerBrandon Bergren <bdragon@FreeBSD.org>2020-09-22 23:27:09 +0000
commit0ebbda971890c149c5028066fc5ed7ea72228d87 (patch)
tree45bcd51c0b0d756110163f48fe59d0dae1aa1834 /stand
parent6b1d211602bd6d01d37be3091cbc8728d4ae3e8a (diff)
downloadsrc-test-0ebbda971890c149c5028066fc5ed7ea72228d87.tar.gz
src-test-0ebbda971890c149c5028066fc5ed7ea72228d87.zip
Tweak ficl definition from r365724
I had overthought how to do the FICL_TRUE change. We do not need to explicitly specify how big the 0 is before the cast to the correct size. The same change was suggested by both imp@ and Gunther Nikl independently. Tested on powerpc. Reported by: imp, Gunther Nikl
Notes
Notes: svn path=/head/; revision=366029
Diffstat (limited to 'stand')
-rw-r--r--stand/ficl/ficl.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/stand/ficl/ficl.h b/stand/ficl/ficl.h
index 239eb382cde3a..97cf00b0dff39 100644
--- a/stand/ficl/ficl.h
+++ b/stand/ficl/ficl.h
@@ -249,7 +249,7 @@ typedef struct ficl_system_info FICL_SYSTEM_INFO;
** complement of false... that unifies logical and bitwise operations
** nicely.
*/
-#define FICL_TRUE ((FICL_UNS)~(0LL))
+#define FICL_TRUE (~(FICL_UNS)0)
#define FICL_FALSE (0)
#define FICL_BOOL(x) ((x) ? FICL_TRUE : FICL_FALSE)