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:
Родитель
6531c0e85a
Коммит
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;
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче