Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 12 Apr 2003 08:37:16 -0700 (PDT)
From:      Robert Drehmel <robert@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 28819 for review
Message-ID:  <200304121537.h3CFbGL5013860@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=28819

Change 28819 by robert@robert_spes on 2003/04/12 08:37:07

	Fix warnings which occurred if sizeof(long) > sizeof(int).

Affected files ...

.. //depot/projects/mips/lib/libstand/quad.h#2 edit

Differences ...

==== //depot/projects/mips/lib/libstand/quad.h#2 (text+ko) ====

@@ -94,7 +94,7 @@
  * (sizeof(long)*CHAR_BIT/2).
  */
 #define	HHALF(x)	((x) >> HALF_BITS)
-#define	LHALF(x)	((x) & ((1 << HALF_BITS) - 1))
+#define	LHALF(x)	((x) & ((1UL << HALF_BITS) - 1))
 #define	LHUP(x)		((x) << HALF_BITS)
 
 quad_t		__divdi3(quad_t a, quad_t b);



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