diff options
| author | Philip Kaufmann <[email protected]> | 2012-05-01 01:46:03 +0200 |
|---|---|---|
| committer | Philip Kaufmann <[email protected]> | 2012-05-01 11:41:04 +0200 |
| commit | 1c94f88d5ecddd4f0d03e1c2751f6414a04ee73b (patch) | |
| tree | 0374e3e6348bcde913c95c78be37b8343c9ddc61 /src/util.cpp | |
| parent | fix compiler warning "suggest explicit braces to avoid ambiguous "else" (diff) | |
| download | discoin-1c94f88d5ecddd4f0d03e1c2751f6414a04ee73b.tar.xz discoin-1c94f88d5ecddd4f0d03e1c2751f6414a04ee73b.zip | |
fix compiler warning "suggest parentheses around assignment used as truth
value [-Wparentheses]" in util.cpp
Diffstat (limited to 'src/util.cpp')
| -rw-r--r-- | src/util.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util.cpp b/src/util.cpp index cd3d3b94a..3569f22ec 100644 --- a/src/util.cpp +++ b/src/util.cpp @@ -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; |