summarylogtreecommitdiffstats
path: root/fix_miniz.patch
blob: a2a351bf350b1c8387eb175bd9204c0337437d7e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
diff -ruN xlnt-1.2.0/source/detail/serialization/miniz.cpp b/source/detail/serialization/miniz.cpp
--- xlnt-1.2.0/source/detail/serialization/miniz.cpp	2017-10-30 19:53:39.000000000 -0400
+++ b/source/detail/serialization/miniz.cpp	2017-11-02 16:59:29.285215872 -0400
@@ -2095,7 +2095,7 @@
     for (y = 0; y < h; ++y)
     {
         tdefl_compress_buffer(pComp, &z, 1, TDEFL_NO_FLUSH);
-        tdefl_compress_buffer(pComp, (mz_uint8 *)pImage + (flip ? (h - 1 - y) : y) * bpl, bpl, TDEFL_NO_FLUSH);
+        tdefl_compress_buffer(pComp, (const mz_uint8 *)pImage + (flip ? (h - 1 - y) : y) * bpl, bpl, TDEFL_NO_FLUSH);
     }
     if (tdefl_compress_buffer(pComp, nullptr, 0, TDEFL_FINISH) != TDEFL_STATUS_DONE)
     {