src/macros.h
changeset 7931 b0a46cd92225
parent 7929 6c9b25842b0f
child 7932 6c3d71e8a129
--- a/src/macros.h	Tue Nov 20 12:57:24 2007 +0000
+++ b/src/macros.h	Tue Nov 20 13:35:54 2007 +0000
@@ -247,9 +247,9 @@
  * @param y The bit position to set
  * @return The new value of the old value with the bit set
  */
-template<typename T> static inline T SETBIT(T& x, const uint8 y)
+template<typename T> static inline T SetBit(T& x, const uint8 y)
 {
-	return x |= (T)1U << y;
+	return x = (T)(x | (T)(1U << y));
 }
 
 /**