src/macros.h
changeset 7929 6c9b25842b0f
parent 7928 63e18de69e50
child 7931 b0a46cd92225
--- a/src/macros.h	Mon Nov 19 21:02:30 2007 +0000
+++ b/src/macros.h	Mon Nov 19 21:32:20 2007 +0000
@@ -263,9 +263,9 @@
  * @param y The bit position to clear
  * @return The new value of the old value with the bit cleared
  */
-template<typename T> static inline T CLRBIT(T& x, const uint8 y)
+template<typename T> static inline T ClrBit(T& x, const uint8 y)
 {
-	return x &= ~((T)1U << y);
+	return x = (T)(x & ~((T)1U << y));
 }
 
 /**