Fix msvc c4127 warning 237/head
authorsvost <ya.nowa@yandex.ru>
Thu, 24 Sep 2015 18:07:46 +0000 (21:07 +0300)
committersvost <ya.nowa@yandex.ru>
Thu, 24 Sep 2015 18:07:46 +0000 (21:07 +0300)
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)