1
0
mirror of https://github.com/ohwgiles/laminar.git synced 2024-10-27 20:34:20 +00:00

fix pedantic 32-bit compile error

This commit is contained in:
Oliver Giles 2017-09-22 19:00:55 +03:00
parent 0e1b898002
commit 0e31fed78e

View File

@ -684,7 +684,7 @@ void Laminar::runFinished(Run * r) {
size_t logsize = r->log.length(); size_t logsize = r->log.length();
if(r->log.length() >= COMPRESS_LOG_MIN_SIZE) { if(r->log.length() >= COMPRESS_LOG_MIN_SIZE) {
std::string zipped(r->log.size(), '\0'); std::string zipped(r->log.size(), '\0');
size_t zippedSize = zipped.size(); unsigned long zippedSize = zipped.size();
if(::compress((unsigned char*)&zipped[0], &zippedSize, if(::compress((unsigned char*)&zipped[0], &zippedSize,
(unsigned char*)&r->log[0], logsize) == Z_OK) { (unsigned char*)&r->log[0], logsize) == Z_OK) {
zipped.resize(zippedSize); zipped.resize(zippedSize);