diff options
author | skidd13 <skidd13@openttd.org> | 2007-11-19 21:32:20 +0000 |
---|---|---|
committer | skidd13 <skidd13@openttd.org> | 2007-11-19 21:32:20 +0000 |
commit | 5c31a973a1dae47f351d4dc9e0451b3341c400f8 (patch) | |
tree | 7d43b1e4a7bf1344b1d4cfb2dc2618720a0040e8 /src/macros.h | |
parent | 71c4325c50ae594a5adf01cac7c9e527b239cdcb (diff) | |
download | openttd-5c31a973a1dae47f351d4dc9e0451b3341c400f8.tar.xz |
(svn r11482) -Codechange: Remove the doubled function ClrBitT and rename the remaining to fit with the naming style
Diffstat (limited to 'src/macros.h')
-rw-r--r-- | src/macros.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/macros.h b/src/macros.h index 5be50cb13..f2d6d89dd 100644 --- a/src/macros.h +++ b/src/macros.h @@ -263,9 +263,9 @@ template<typename T> static inline T SETBIT(T& x, const uint8 y) * @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)); } /** |