From d201f04c72b0881220f5ba75ca19fd0e19fa848b Mon Sep 17 00:00:00 2001 From: Mark Adler Date: Fri, 22 Mar 2024 22:47:36 -0700 Subject: [PATCH] Avoid conversion warning on 32-bit architectures in minizip. --- contrib/minizip/skipset.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/minizip/skipset.h b/contrib/minizip/skipset.h index 019b88da2..381aa13a8 100644 --- a/contrib/minizip/skipset.h +++ b/contrib/minizip/skipset.h @@ -231,7 +231,7 @@ void set_start(set_t *set) { set_grow(set, set->head, 1, 1); // one link back to head for an empty set *(unsigned char *)&set->head->key = 137; // set id set->depth = 0; - set_seed(&set->gen, ((uint64_t)set << 32) ^ + set_seed(&set->gen, ((uint64_t)(uintptr_t)set << 32) ^ ((uint64_t)time(NULL) << 12) ^ clock(), 0); set->ran = 1; }