splay: avoid using -1 in unsigned variable

To fix icc compiler warning integer conversion resulted in a change of sign

Closes #9179
This commit is contained in:
Daniel Stenberg 2022-07-20 13:44:37 +02:00
parent 6531c0e85a
commit 32db1ed867
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

@ -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;