]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
splay: fix signed/unsigned mismatch warning
authorJay Satiro <raysatiro@yahoo.com>
Sat, 29 Jul 2017 05:13:42 +0000 (01:13 -0400)
committerJay Satiro <raysatiro@yahoo.com>
Sat, 29 Jul 2017 05:13:42 +0000 (01:13 -0400)
Follow-up to 4dee50b.

Ref: https://github.com/curl/curl/pull/1693

lib/splay.c

index 24c6491c53a01d3aa3c6e33eee2cfbb740baa3ca..68ff9c5db877202c941374ab6768454d1098c0eb 100644 (file)
@@ -102,7 +102,7 @@ struct Curl_tree *Curl_splayinsert(struct curltime i,
                                    struct Curl_tree *node)
 {
   static const struct curltime KEY_NOTUSED = {
-    -1, -1
+    (time_t)-1, (unsigned int)-1
   }; /* will *NEVER* appear */
 
   if(node == NULL)
@@ -212,7 +212,7 @@ int Curl_splayremovebyaddr(struct Curl_tree *t,
                            struct Curl_tree **newroot)
 {
   static const struct curltime KEY_NOTUSED = {
-    -1, -1
+    (time_t)-1, (unsigned int)-1
   }; /* will *NEVER* appear */
   struct Curl_tree *x;