Merge pull request #237 from svost/c4127
authorCryptoManiac <CryptoManiac@users.noreply.github.com>
Thu, 24 Sep 2015 18:51:52 +0000 (11:51 -0700)
committerCryptoManiac <CryptoManiac@users.noreply.github.com>
Thu, 24 Sep 2015 18:51:52 +0000 (11:51 -0700)
Fix msvc c4127 warning

src/serialize.h

index 52328c3..ccd0145 100644 (file)
@@ -1418,7 +1418,7 @@ public:
 
     // search for a given byte in the stream, and remain positioned on it
     void FindByte(char ch) {
-        while (true) {
+        for ( ; ; ) {
             if (nReadPos == nSrcPos)
                 Fill();
             if (vchBuf[nReadPos % vchBuf.size()] == ch)