gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] [gnurl] 28/41: bagder/Curl_tvdiff_us: fix the math


From: gnunet
Subject: [GNUnet-SVN] [gnurl] 28/41: bagder/Curl_tvdiff_us: fix the math
Date: Sun, 20 Aug 2017 20:46:50 +0200

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

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

commit 7973baacea1ad22f235f64642af71d6791e763b3
Author: Daniel Stenberg <address@hidden>
AuthorDate: Sat Aug 12 15:34:59 2017 +0200

    bagder/Curl_tvdiff_us: fix the math
    
    Regression since adef394ac5 (released in 7.55.0)
    
    Reported-by: Han Qiao
    Fixes #1769
    Closes #1771
---
 lib/timeval.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/timeval.c b/lib/timeval.c
index 69a8fb1fc..d7207b3a2 100644
--- a/lib/timeval.c
+++ b/lib/timeval.c
@@ -158,5 +158,5 @@ time_t Curl_tvdiff_us(struct curltime newer, struct 
curltime older)
     return 0x7fffffffffffffffLL;
 #endif
   return (newer.tv_sec-older.tv_sec)*1000000+
-    (time_t)(newer.tv_usec-older.tv_usec);
+    (int)(newer.tv_usec-older.tv_usec);
 }

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



reply via email to

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