changeset 16238:81c7caa54403 draft

(svn r20939) -Fix: some MSVC warnings
author rubidium <rubidium@openttd.org>
date Fri, 15 Oct 2010 22:08:57 +0000
parents cf3d31cf5da4
children 308a826df5ed
files src/cheat_gui.cpp src/network/core/tcp.cpp
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/cheat_gui.cpp
+++ b/src/cheat_gui.cpp
@@ -66,7 +66,7 @@
  */
 static int32 ClickSetProdCheat(int32 p1, int32 p2)
 {
-	_cheats.setup_prod.value = p1;
+	_cheats.setup_prod.value = (p1 != 0);
 	InvalidateWindowClassesData(WC_INDUSTRY_VIEW);
 	return _cheats.setup_prod.value;
 }
--- a/src/network/core/tcp.cpp
+++ b/src/network/core/tcp.cpp
@@ -238,7 +238,7 @@
 #endif
 
 	this->writable = !!FD_ISSET(this->sock, &write_fd);
-	return FD_ISSET(this->sock, &read_fd);
+	return FD_ISSET(this->sock, &read_fd) != 0;
 }
 
 #endif /* ENABLE_NETWORK */