summaryrefslogtreecommitdiff
path: root/insert_string_tpl.h
diff options
context:
space:
mode:
authorNathan Moinvaziri <nathan@nathanm.com>2020-07-03 20:37:11 -0700
committerHans Kristian Rosbach <hk-github@circlestorm.org>2020-08-14 22:20:50 +0200
commit9ee4f8a100057519b021a3a756741fa3d4664f7e (patch)
tree9f46c83d46ba8a61a9eee668c1f8a46c25dec622 /insert_string_tpl.h
parent2928d96e2a950f81ade2ff198a11800d2168b983 (diff)
Fixed many possible loss of data warnings where insert_string and quick_insert_string function used on Windows.
Diffstat (limited to 'insert_string_tpl.h')
-rw-r--r--insert_string_tpl.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/insert_string_tpl.h b/insert_string_tpl.h
index eee0107..127a7ca 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;