Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 22 Sep 2020 23:27:10 +0000 (UTC)
From:      Brandon Bergren <bdragon@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r366029 - head/stand/ficl
Message-ID:  <202009222327.08MNRAfL091267@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bdragon
Date: Tue Sep 22 23:27:09 2020
New Revision: 366029
URL: https://svnweb.freebsd.org/changeset/base/366029

Log:
  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

Modified:
  head/stand/ficl/ficl.h

Modified: head/stand/ficl/ficl.h
==============================================================================
--- head/stand/ficl/ficl.h	Tue Sep 22 23:13:29 2020	(r366028)
+++ head/stand/ficl/ficl.h	Tue Sep 22 23:27:09 2020	(r366029)
@@ -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)
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202009222327.08MNRAfL091267>