From d89909997ca76d35a14d7c5738fc14769b48f71e Mon Sep 17 00:00:00 2001 From: terminx Date: Sat, 29 Jul 2017 09:48:43 +0000 Subject: [PATCH] Fix issue with screenshots git-svn-id: https://svn.eduke32.com/eduke32@6399 1a8010ca-5511-0410-912e-c29ae57300e0 --- source/build/src/pngwrite.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/build/src/pngwrite.cpp b/source/build/src/pngwrite.cpp index c6f83da11..a0b407a45 100644 --- a/source/build/src/pngwrite.cpp +++ b/source/build/src/pngwrite.cpp @@ -16,7 +16,7 @@ static void png_write_uint32(uint32_t const in) static void png_write_chunk(uint32_t const size, char const *const type, uint8_t const *const data, uint32_t flags) { - uint32_t chunk_size = flags & CHUNK_COMPRESSED ? compressBound(size) : size; + mz_ulong chunk_size = flags & CHUNK_COMPRESSED ? compressBound(size) : size; uint8_t * const chunk = (uint8_t *) Xcalloc(1, 4 + chunk_size); Bmemcpy(chunk, type, 4);