Re: [PATCH 1/6] t0006 & t5000: prepare for 64-bit time_t

2017-02-27 Thread Junio C Hamano
Johannes Schindelin writes: > This quick fix, however, tests for *long* to be 64-bit or not. What we > need, though, is a test that says whether *whatever data type we use for > timestamps* is 64-bit or not. > > The same quick fix was used to handle the similar problem where Git's > source code u

[PATCH 1/6] t0006 & t5000: prepare for 64-bit time_t

2017-02-27 Thread Johannes Schindelin
Git's source code refers to timestamps as unsigned longs. On 32-bit platforms, as well as on Windows, unsigned long is not large enough to capture dates that are "absurdly far in the future". It is perfectly valid by the C standard, of course, for the `long` data type to refer to 32-bit integers.