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)
committerLuke Dashjr <luke-jr+git@utopios.org>
Wed, 2 May 2012 03:11:56 +0000 (23:11 -0400)
value [-Wparentheses]" in util.cpp

src/util.cpp

index a45d191..766c3ab 100644 (file)
@@ -236,7 +236,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;