From: Daniel Stenberg Date: Wed, 20 Jul 2022 11:44:37 +0000 (+0200) Subject: splay: avoid using -1 in unsigned variable X-Git-Tag: curl-7_85_0~137 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=32db1ed86769bcd3ad44dc0f1e4fc9140e26359e;p=thirdparty%2Fcurl.git splay: avoid using -1 in unsigned variable To fix icc compiler warning integer conversion resulted in a change of sign Closes #9179 --- diff --git a/lib/splay.c b/lib/splay.c index e7d86f1aac..33b44aa1c6 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;