From 0201f22237d7ad64a33c5acd46b2398ee51babf0 Mon Sep 17 00:00:00 2001
From: Aaron Bishop <aaron@cfssolutions.com>
Date: Thu, 2 Nov 2017 17:04:28 -0400
Subject: [PATCH] fix const correctness error

---
 source/detail/serialization/miniz.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/source/detail/serialization/miniz.cpp b/source/detail/serialization/miniz.cpp
index 290ff88e..f6bf2335 100644
--- a/source/detail/serialization/miniz.cpp
+++ b/source/detail/serialization/miniz.cpp
@@ -2095,7 +2095,7 @@ void *tdefl_write_image_to_png_file_in_memory_ex(const void *pImage, int w, int
     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)
     {