Permalink
Browse files

Fix building against zlib without ZLIB_CONST

Resolves #3
  • Loading branch information...
jibsen committed Feb 7, 2017
1 parent 8738984 commit 31b3399eb91870a750c8aa26bce45fd786d3094f
Showing with 1 addition and 1 deletion.
  1. +1 −1 pngwolf.cxx
@@ -288,7 +288,7 @@ struct DeflateZlib : public Deflater {
abort();
}
strm.next_in = inflated.data();
strm.next_in = const_cast<unsigned char*>(inflated.data());
strm.avail_in = inflated.size();
size_t max = deflateBound(&strm, inflated.size());

0 comments on commit 31b3399

Please sign in to comment.