(svn r13273) -Fix [FS#2042]: MSVC warnings (again)
authorglx
Mon, 26 May 2008 20:20:38 +0000
changeset 9370 7e64238f2dbd
parent 9369 1c3d22cfdeb5
child 9371 da6ac5609943
(svn r13273) -Fix [FS#2042]: MSVC warnings (again)
src/bridge_gui.cpp
src/core/bitmath_func.hpp
--- a/src/bridge_gui.cpp	Mon May 26 18:30:58 2008 +0000
+++ b/src/bridge_gui.cpp	Mon May 26 20:20:38 2008 +0000
@@ -65,7 +65,7 @@
 
 	/* Constants for sorting the bridges */
 	static const StringID sorter_names[];
-	static const GUIBridgeList::SortFunction *const sorter_funcs[];
+	static GUIBridgeList::SortFunction *const sorter_funcs[];
 
 	/* Internal variables */
 	TileIndex start_tile;
--- a/src/core/bitmath_func.hpp	Mon May 26 18:30:58 2008 +0000
+++ b/src/core/bitmath_func.hpp	Mon May 26 20:20:38 2008 +0000
@@ -97,7 +97,7 @@
  * @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.