gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] [gnurl] 150/205: easy: silence compiler warning


From: gnunet
Subject: [GNUnet-SVN] [gnurl] 150/205: easy: silence compiler warning
Date: Thu, 20 Apr 2017 16:21:30 +0200

This is an automated email from the git hooks/post-receive script.

ng0 pushed a commit to annotated tag gnurl-7.54.0
in repository gnurl.

commit a68ca63d7313dcc266f92108b2694d43b0afeba7
Author: Jay Satiro <address@hidden>
AuthorDate: Tue Apr 4 02:43:21 2017 -0400

    easy: silence compiler warning
    
    Safe to silence warning adding time delta of poll, which can trigger on
    Windows since sizeof time_t > sizeof long.
    
    warning C4244: '+=' : conversion from 'time_t' to 'long', possible loss
    of data
---
 lib/easy.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/easy.c b/lib/easy.c
index b3159d1a2..8822b42c8 100644
--- a/lib/easy.c
+++ b/lib/easy.c
@@ -619,7 +619,7 @@ static CURLcode wait_or_timeout(struct Curl_multi *multi, 
struct events *ev)
         /* If nothing updated the timeout, we decrease it by the spent time.
          * If it was updated, it has the new timeout time stored already.
          */
-        ev->ms += curlx_tvdiff(after, before);
+        ev->ms += (long)curlx_tvdiff(after, before);
 
     }
     else

-- 
To stop receiving notification emails like this one, please contact
address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]