mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-15 12:54:27 +00:00
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
This commit is contained in:
parent
6b1d211602
commit
0ebbda9718
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=366029
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in a new issue