Skip to content

Commit

Permalink
timeval: make timediff_t also work on 32bit windows
Browse files Browse the repository at this point in the history
... by using curl_off_t for the typedef if time_t is larger than 4
bytes.

Reported-by: Gisle Vanem
Bug: b9d25f9#co
mmitcomment-25205058
Closes #2019
  • Loading branch information
bagder committed Oct 26, 2017
1 parent f0364f7 commit 788d333
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/timeval.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
#if SIZEOF_TIME_T < 8
typedef int timediff_t;
#else
typedef ssize_t timediff_t;
typedef curl_off_t timediff_t;
#endif

struct curltime {
Expand Down

0 comments on commit 788d333

Please sign in to comment.