gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] [gnurl] 59/150: get_posix_time: only check for overflows if


From: gnunet
Subject: [GNUnet-SVN] [gnurl] 59/150: get_posix_time: only check for overflows if they can happen!
Date: Fri, 30 Mar 2018 16:48:33 +0200

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

ng0 pushed a commit to branch master
in repository gnurl.

commit 23722c515fc416ac4b024b49cba8758c329990cf
Author: Daniel Stenberg <address@hidden>
AuthorDate: Fri Feb 9 14:29:03 2018 +0100

    get_posix_time: only check for overflows if they can happen!
---
 lib/smb.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/lib/smb.c b/lib/smb.c
index e5ac5d76a..b4326341e 100644
--- a/lib/smb.c
+++ b/lib/smb.c
@@ -716,11 +716,13 @@ static void get_posix_time(time_t *out, curl_off_t 
timestamp)
 {
   timestamp -= 116444736000000000;
   timestamp /= 10000000;
+#if SIZEOF_TIME_T < SIZEOF_CURL_OFF_T
   if(timestamp > TIME_T_MAX)
     *out = TIME_T_MAX;
   else if(timestamp < TIME_T_MIN)
     *out = TIME_T_MIN;
   else
+#endif
     *out = (time_t) timestamp;
 }
 

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



reply via email to

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