From 6e6014918ea76fca66e458e565d69a11ed0f00e6 Mon Sep 17 00:00:00 2001 From: glx Date: Mon, 26 May 2008 20:20:38 +0000 Subject: (svn r13273) -Fix [FS#2042]: MSVC warnings (again) --- src/core/bitmath_func.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/core') 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 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. -- cgit v1.2.3-54-g00ecf