Skip to content

Commit

Permalink
Merge 55179a2 into 3a48a13
Browse files Browse the repository at this point in the history
  • Loading branch information
bagder committed Jul 3, 2017
2 parents 3a48a13 + 55179a2 commit 51e0d99
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/timeval.c
Original file line number Diff line number Diff line change
Expand Up @@ -145,8 +145,8 @@ time_t Curl_tvdiff_us(struct timeval newer, struct timeval older)
return 0x7fffffff;
#else
/* for 64bit time_t systems */
if(diff >= (0x7fffffffffffffff/1000000))
return 0x7fffffffffffffff;
if(diff >= (0x7fffffffffffffffLL/1000000))
return 0x7fffffffffffffffLL;
#endif
return (newer.tv_sec-older.tv_sec)*1000000+
(time_t)(newer.tv_usec-older.tv_usec);
Expand Down

0 comments on commit 51e0d99

Please sign in to comment.