[Box Backup-commit] COMMIT r2777 - box/invisnet/vs2010/0.11/lib/server

subversion at boxbackup.org subversion at boxbackup.org
Sun Oct 3 18:23:32 BST 2010


Author: invisnet
Date: 2010-10-03 18:23:31 +0100 (Sun, 03 Oct 2010)
New Revision: 2777

Modified:
   box/invisnet/vs2010/0.11/lib/server/Protocol.h
Log:
Use a boolean expression to test to get a bool

Modified: box/invisnet/vs2010/0.11/lib/server/Protocol.h
===================================================================
--- box/invisnet/vs2010/0.11/lib/server/Protocol.h	2010-10-03 16:57:23 UTC (rev 2776)
+++ box/invisnet/vs2010/0.11/lib/server/Protocol.h	2010-10-03 17:23:31 UTC (rev 2777)
@@ -95,7 +95,7 @@
 	void Read(int32_t &rOut);
 	void Read(int16_t &rOut);
 	void Read(int8_t &rOut);
-	void Read(bool &rOut) {int8_t read; Read(read); rOut = (read == true);}
+	void Read(bool &rOut) {int8_t read; Read(read); rOut = (read != 0);}
 	void Read(std::string &rOut);
 	template<typename type>
 	void Read(type &rOut)




More information about the Boxbackup-commit mailing list