diff options
author | skidd13 <skidd13@openttd.org> | 2007-11-19 21:02:30 +0000 |
---|---|---|
committer | skidd13 <skidd13@openttd.org> | 2007-11-19 21:02:30 +0000 |
commit | 71c4325c50ae594a5adf01cac7c9e527b239cdcb (patch) | |
tree | 21212e0b25777aac62f30d88b981e2bd624c4616 /src/macros.h | |
parent | 58bb5c752568f8f9a1cb4d9533268d0ecad34e12 (diff) | |
download | openttd-71c4325c50ae594a5adf01cac7c9e527b239cdcb.tar.xz |
(svn r11481) -Codechange: Rename the HASBIT function to fit with the naming style
Diffstat (limited to 'src/macros.h')
-rw-r--r-- | src/macros.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/macros.h b/src/macros.h index a4dd78845..5be50cb13 100644 --- a/src/macros.h +++ b/src/macros.h @@ -231,7 +231,7 @@ static inline int32 ClampToI32(const int64 a) * @param y The position of the bit to check, started from the LSB * @return True if the bit is set, false else. */ -template<typename T> static inline bool HASBIT(const T x, const uint8 y) +template<typename T> static inline bool HasBit(const T x, const uint8 y) { return (x & ((T)1U << y)) != 0; } |