diff options
author | Andrei Karas <akaras@inbox.ru> | 2011-09-01 20:04:35 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2011-09-01 20:04:35 +0300 |
commit | b8cdabbd20690d57930dce9dda949fca21a6233a (patch) | |
tree | ddd3d0a3bb4d83206b92ede95b330430e803e26b /src/resources/mapreader.cpp | |
parent | ab1f66527863c7fcce6c3ccedda0d5560dc063c7 (diff) | |
download | plus-b8cdabbd20690d57930dce9dda949fca21a6233a.tar.gz plus-b8cdabbd20690d57930dce9dda949fca21a6233a.tar.bz2 plus-b8cdabbd20690d57930dce9dda949fca21a6233a.tar.xz plus-b8cdabbd20690d57930dce9dda949fca21a6233a.zip |
Eliminate asserts from most files.
Diffstat (limited to 'src/resources/mapreader.cpp')
-rw-r--r-- | src/resources/mapreader.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/resources/mapreader.cpp b/src/resources/mapreader.cpp index 70c45054f..685d415ff 100644 --- a/src/resources/mapreader.cpp +++ b/src/resources/mapreader.cpp @@ -37,7 +37,6 @@ #include "utils/stringutils.h" #include "utils/xml.h" -#include <cassert> #include <iostream> #include <zlib.h> @@ -110,7 +109,8 @@ int inflateMemory(unsigned char *in, unsigned int inLength, } ret = inflate(&strm, Z_NO_FLUSH); - assert(ret != Z_STREAM_ERROR); + if (ret == Z_STREAM_ERROR) + return ret; switch (ret) { @@ -140,7 +140,7 @@ int inflateMemory(unsigned char *in, unsigned int inLength, } } while (ret != Z_STREAM_END); - assert(strm.avail_in == 0); +// assert(strm.avail_in == 0); outLength = bufferSize - strm.avail_out; (void) inflateEnd(&strm); |