From 32db1ed86769bcd3ad44dc0f1e4fc9140e26359e Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Wed, 20 Jul 2022 13:44:37 +0200 Subject: [PATCH] splay: avoid using -1 in unsigned variable To fix icc compiler warning integer conversion resulted in a change of sign Closes #9179 --- lib/splay.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/splay.c b/lib/splay.c index e7d86f1aa..33b44aa1c 100644 --- a/lib/splay.c +++ b/lib/splay.c @@ -103,7 +103,7 @@ struct Curl_tree *Curl_splayinsert(struct curltime i, struct Curl_tree *node) { static const struct curltime KEY_NOTUSED = { - (time_t)-1, (unsigned int)-1 + ~0, -1 }; /* will *NEVER* appear */ if(!node) @@ -213,7 +213,7 @@ int Curl_splayremove(struct Curl_tree *t, struct Curl_tree **newroot) { static const struct curltime KEY_NOTUSED = { - (time_t)-1, (unsigned int)-1 + ~0, -1 }; /* will *NEVER* appear */ struct Curl_tree *x;