<div dir="ltr">Yep, that was the problem. Thanks!</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, 23 May 2022 at 19:14, Paul Eggert <<a href="mailto:eggert@cs.ucla.edu">eggert@cs.ucla.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On 5/23/22 04:48, Almaz Mingaleev wrote:<br>
> I think overflow happens somewhere.<br>
> Please see the attached code.<br>
<br>
That test doesn't look right, as each mktime call modifies its argument, <br>
polluting the next test case. Please try the attached test instead, <br>
ported to C. On my platform (Ubuntu 22.04, x86-64) this outputs:<br>
<br>
sizeof time_t: 8<br>
2120284800<br>
2120256000<br>
<a href="tel:(407)%20681-2800" value="+14076812800" target="_blank">4076812800</a><br>
<a href="tel:(407)%20678-4000" value="+14076784000" target="_blank">4076784000</a><br>
<br>
which looks OK.</blockquote></div>