diff options
author | madmaxoft <github@xoft.cz> | 2014-01-07 16:00:19 +0100 |
---|---|---|
committer | madmaxoft <github@xoft.cz> | 2014-01-07 17:07:49 +0100 |
commit | 39a1bcdea0a5897a7090748529e3b903918882ec (patch) | |
tree | bc8e5421a6365b56746284b0eb2732e7a4fca333 /src/StringCompression.cpp | |
parent | LuaState can push strings with embedded NULs. (diff) | |
download | cuberite-39a1bcdea0a5897a7090748529e3b903918882ec.tar cuberite-39a1bcdea0a5897a7090748529e3b903918882ec.tar.gz cuberite-39a1bcdea0a5897a7090748529e3b903918882ec.tar.bz2 cuberite-39a1bcdea0a5897a7090748529e3b903918882ec.tar.lz cuberite-39a1bcdea0a5897a7090748529e3b903918882ec.tar.xz cuberite-39a1bcdea0a5897a7090748529e3b903918882ec.tar.zst cuberite-39a1bcdea0a5897a7090748529e3b903918882ec.zip |
Diffstat (limited to 'src/StringCompression.cpp')
-rw-r--r-- | src/StringCompression.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/StringCompression.cpp b/src/StringCompression.cpp index 36946b282..e15058840 100644 --- a/src/StringCompression.cpp +++ b/src/StringCompression.cpp @@ -74,7 +74,7 @@ int CompressStringGZIP(const char * a_Data, int a_Length, AString & a_Compressed return res; } - while (true) + for (;;) { res = deflate(&strm, Z_FINISH); switch (res) @@ -137,7 +137,7 @@ extern int UncompressStringGZIP(const char * a_Data, int a_Length, AString & a_U return res; } - while (true) + for (;;) { res = inflate(&strm, Z_FINISH); switch (res) |