From 799086de429290c8e59d0e49d7e2cdc46ab40f35 Mon Sep 17 00:00:00 2001 From: Herman Semenov Date: Tue, 20 May 2025 18:09:37 +0300 Subject: [PATCH] align bzip and lzma streams for 64-bit platforms affected structs: - mz_stream_lzma_s 32984 to 32976 bytes - mz_stream_bzip_s 32912 to 32904 bytes --- mz_strm_bzip.c | 4 ++-- mz_strm_lzma.c | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/mz_strm_bzip.c b/mz_strm_bzip.c index 3b6ca8f..d6d70a6 100644 --- a/mz_strm_bzip.c +++ b/mz_strm_bzip.c @@ -29,13 +29,13 @@ typedef struct mz_stream_bzip_s { int32_t mode; int32_t error; uint8_t buffer[INT16_MAX]; + int8_t initialized; int32_t buffer_len; int16_t stream_end; + int16_t level; int64_t total_in; int64_t total_out; int64_t max_total_in; - int8_t initialized; - int16_t level; } mz_stream_bzip; /***************************************************************************/ diff --git a/mz_strm_lzma.c b/mz_strm_lzma.c index 227c146..c60f08c 100644 --- a/mz_strm_lzma.c +++ b/mz_strm_lzma.c @@ -35,16 +35,16 @@ typedef struct mz_stream_lzma_s { int32_t mode; int32_t error; uint8_t buffer[INT16_MAX]; + int8_t header; int32_t buffer_len; + int8_t initialized; + int16_t method; int64_t total_in; int64_t total_out; int64_t max_total_in; int64_t max_total_out; - int8_t initialized; - int8_t header; int32_t header_size; uint32_t preset; - int16_t method; } mz_stream_lzma; /***************************************************************************/