mirror of
https://github.com/curl/curl.git
synced 2024-11-27 05:50:21 +08:00
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:
parent
6531c0e85a
commit
32db1ed867
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user