Re: mktime loop

2013-05-16 Thread Denis Excoffier
On 2013-05-14 15:39, Corinna Vinschen wrote: > On May 13 18:57, Corinna Vinschen wrote: >> On May 13 18:41, Denis Excoffier wrote: >>> On 2013-05-13 17:49, Corinna Vinschen wrote: Erm... hang on. Is that really a problem? 2147483647 is 0x7fff, which is the maximum you get with a 4

Re: mktime loop

2013-05-14 Thread Corinna Vinschen
On May 13 18:57, Corinna Vinschen wrote: > On May 13 18:41, Denis Excoffier wrote: > > On 2013-05-13 17:49, Corinna Vinschen wrote: > > > Erm... hang on. Is that really a problem? 2147483647 is 0x7fff, > > > which is the maximum you get with a 4 byte time_t (== signed long) > > > anyway. If

Re: mktime loop

2013-05-13 Thread Corinna Vinschen
On May 13 18:41, Denis Excoffier wrote: > On 2013-05-13 17:49, Corinna Vinschen wrote: > > Erm... hang on. Is that really a problem? 2147483647 is 0x7fff, > > which is the maximum you get with a 4 byte time_t (== signed long) > > anyway. If you switch the date to 2038-01-20, the value will b

Re: mktime loop

2013-05-13 Thread Denis Excoffier
On 2013-05-13 17:49, Corinna Vinschen wrote: > On May 13 17:36, Corinna Vinschen wrote: >> On May 13 09:08, Denis Excoffier wrote: >>> Hello, >>> >>> The following program (see below) is working properly under plain >>> 1.7.18. With all the snapshots afterwards (including >>> the current one 2013

Re: mktime loop

2013-05-13 Thread Corinna Vinschen
On May 13 17:36, Corinna Vinschen wrote: > On May 13 09:08, Denis Excoffier wrote: > > Hello, > > > > The following program (see below) is working properly under plain > > 1.7.18. With all the snapshots afterwards (including > > the current one 20130508), it fails after day=19, looping forever > >

Re: mktime loop

2013-05-13 Thread Corinna Vinschen
On May 13 09:08, Denis Excoffier wrote: > Hello, > > The following program (see below) is working properly under plain > 1.7.18. With all the snapshots afterwards (including > the current one 20130508), it fails after day=19, looping forever > (it seems). I use XP. > > Regards, > > Denis Excoffi

mktime loop

2013-05-13 Thread Denis Excoffier
Hello, The following program (see below) is working properly under plain 1.7.18. With all the snapshots afterwards (including the current one 20130508), it fails after day=19, looping forever (it seems). I use XP. Regards, Denis Excoffier. % cat foo.c #include #include int main () { in