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)
|
struct Curl_tree *node)
|
||||||
{
|
{
|
||||||
static const struct curltime KEY_NOTUSED = {
|
static const struct curltime KEY_NOTUSED = {
|
||||||
(time_t)-1, (unsigned int)-1
|
~0, -1
|
||||||
}; /* will *NEVER* appear */
|
}; /* will *NEVER* appear */
|
||||||
|
|
||||||
if(!node)
|
if(!node)
|
||||||
@ -213,7 +213,7 @@ int Curl_splayremove(struct Curl_tree *t,
|
|||||||
struct Curl_tree **newroot)
|
struct Curl_tree **newroot)
|
||||||
{
|
{
|
||||||
static const struct curltime KEY_NOTUSED = {
|
static const struct curltime KEY_NOTUSED = {
|
||||||
(time_t)-1, (unsigned int)-1
|
~0, -1
|
||||||
}; /* will *NEVER* appear */
|
}; /* will *NEVER* appear */
|
||||||
struct Curl_tree *x;
|
struct Curl_tree *x;
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user