From 9ee4f8a100057519b021a3a756741fa3d4664f7e Mon Sep 17 00:00:00 2001 From: Nathan Moinvaziri Date: Fri, 3 Jul 2020 20:37:11 -0700 Subject: Fixed many possible loss of data warnings where insert_string and quick_insert_string function used on Windows. --- insert_string_tpl.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'insert_string_tpl.h') diff --git a/insert_string_tpl.h b/insert_string_tpl.h index eee01070e9..127a7ca8d1 100644 --- a/insert_string_tpl.h +++ b/insert_string_tpl.h @@ -27,7 +27,7 @@ * of the hash chain (the most recent string with same hash key). Return * the previous length of the hash chain. */ -ZLIB_INTERNAL Pos QUICK_INSERT_STRING(deflate_state *const s, const Pos str) { +ZLIB_INTERNAL Pos QUICK_INSERT_STRING(deflate_state *const s, const uint32_t str) { Pos head; uint8_t *strstart = s->window + str; uint32_t val, hm, h = 0; @@ -60,7 +60,7 @@ ZLIB_INTERNAL Pos QUICK_INSERT_STRING(deflate_state *const s, const Pos str) { * input characters and the first MIN_MATCH bytes of str are valid * (except for the last MIN_MATCH-1 bytes of the input file). */ -ZLIB_INTERNAL Pos INSERT_STRING(deflate_state *const s, const Pos str, unsigned int count) { +ZLIB_INTERNAL Pos INSERT_STRING(deflate_state *const s, const uint32_t str, uint32_t count) { Pos idx, ret; uint8_t *strstart, *strend; -- cgit 0.0.5-2-1-g0f52