diff options
author | glx <glx@openttd.org> | 2008-05-26 20:20:38 +0000 |
---|---|---|
committer | glx <glx@openttd.org> | 2008-05-26 20:20:38 +0000 |
commit | 6e6014918ea76fca66e458e565d69a11ed0f00e6 (patch) | |
tree | ff079ed6c9a34ca5c646d1c64c44d2dbb72ee25b /src/core | |
parent | 0972b3dd15bdb2150415ab2ba30fbd4e58301c52 (diff) | |
download | openttd-6e6014918ea76fca66e458e565d69a11ed0f00e6.tar.xz |
(svn r13273) -Fix [FS#2042]: MSVC warnings (again)
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/bitmath_func.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/bitmath_func.hpp b/src/core/bitmath_func.hpp index 775ae8338..dd93b11d9 100644 --- a/src/core/bitmath_func.hpp +++ b/src/core/bitmath_func.hpp @@ -97,7 +97,7 @@ template<typename T> static inline bool HasBit(const T x, const uint8 y) * @param y The second value * @return True if at least one bit is set in both values, false else. */ -#define HASBITS(x, y) ((x) & (y)) +#define HASBITS(x, y) (((x) & (y)) != 0) /** * Set a bit in a variable. |