fix compiler warning "suggest parentheses around assignment used as truth
authorPhilip Kaufmann <phil.kaufmann@t-online.de>
Mon, 30 Apr 2012 23:46:03 +0000 (01:46 +0200)
committerPhilip Kaufmann <phil.kaufmann@t-online.de>
Tue, 1 May 2012 09:41:04 +0000 (11:41 +0200)
value [-Wparentheses]" in util.cpp

src/util.cpp

index cd3d3b9..3569f22 100644 (file)
@@ -252,7 +252,7 @@ inline int OutputDebugStringF(const char* pszFormat, ...)
             *pend = '\0';
             char* p1 = pszBuffer;
             char* p2;
-            while (p2 = strchr(p1, '\n'))
+            while ((p2 = strchr(p1, '\n')))
             {
                 p2++;
                 char c = *p2;