(svn r11379) -Fix r11378: KillFirstBit2x64 accepts and returns unsigned variables, not signed, so enforce that a bit
authortruelight
Sun, 04 Nov 2007 18:32:51 +0000
changeset 8325 1552eb5e5430
parent 8324 ef3f806cfae5
child 8326 f52b35031c5a
(svn r11379) -Fix r11378: KillFirstBit2x64 accepts and returns unsigned variables, not signed, so enforce that a bit
src/macros.h
--- a/src/macros.h	Sun Nov 04 18:28:52 2007 +0000
+++ b/src/macros.h	Sun Nov 04 18:32:51 2007 +0000
@@ -421,9 +421,9 @@
  * @param value The value to clear the first bit
  * @return The new value with the first bit cleared
  */
-static inline int KillFirstBit2x64(int value)
+static inline uint KillFirstBit2x64(uint value)
 {
-	return value &= (int)(value - 1) | 0x3FFFC0C0;
+	return value &= (uint)(value - 1) | 0x3FFFC0C0;
 }
 
 /**