diff options
author | Mark Adler <madler@alumni.caltech.edu> | 2024-03-22 22:47:36 -0700 |
---|---|---|
committer | Mark Adler <madler@alumni.caltech.edu> | 2024-03-22 22:47:36 -0700 |
commit | d201f04c72b0881220f5ba75ca19fd0e19fa848b (patch) | |
tree | 1ff5fd77d67a62510e613489720797adbe312b8d /contrib | |
parent | 90c677bc25f7ebf8be95ab0b4fe752c095417600 (diff) | |
download | zlib-d201f04c72b0881220f5ba75ca19fd0e19fa848b.tar.gz zlib-d201f04c72b0881220f5ba75ca19fd0e19fa848b.tar.bz2 zlib-d201f04c72b0881220f5ba75ca19fd0e19fa848b.zip |
Avoid conversion warning on 32-bit architectures in minizip.
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/minizip/skipset.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/minizip/skipset.h b/contrib/minizip/skipset.h index 019b88d..381aa13 100644 --- a/contrib/minizip/skipset.h +++ b/contrib/minizip/skipset.h | |||
@@ -231,7 +231,7 @@ void set_start(set_t *set) { | |||
231 | set_grow(set, set->head, 1, 1); // one link back to head for an empty set | 231 | set_grow(set, set->head, 1, 1); // one link back to head for an empty set |
232 | *(unsigned char *)&set->head->key = 137; // set id | 232 | *(unsigned char *)&set->head->key = 137; // set id |
233 | set->depth = 0; | 233 | set->depth = 0; |
234 | set_seed(&set->gen, ((uint64_t)set << 32) ^ | 234 | set_seed(&set->gen, ((uint64_t)(uintptr_t)set << 32) ^ |
235 | ((uint64_t)time(NULL) << 12) ^ clock(), 0); | 235 | ((uint64_t)time(NULL) << 12) ^ clock(), 0); |
236 | set->ran = 1; | 236 | set->ran = 1; |
237 | } | 237 | } |