Date: Tue, 4 Jul 2023 04:07:14 +0000 (UTC) From: Pedro Giffuni <pfg@freebsd.org> To: Warner Losh <imp@bsdimp.com> Cc: src-committers <src-committers@freebsd.org>, "<dev-commits-src-all@freebsd.org>" <dev-commits-src-all@freebsd.org>, "<dev-commits-src-main@freebsd.org>" <dev-commits-src-main@freebsd.org> Subject: Re: git: 4456846a1a0d - main - bin/date: Upgrade calculations Message-ID: <1767168745.2134945.1688443634249@mail.yahoo.com> In-Reply-To: <CANCZdfrSnS5Xq020jwsY-pgmTCJEn5Ka3Zr5vqt6OK%2Buawc4tA@mail.gmail.com> References: <202307040308.36438MTA093771@gitrepo.freebsd.org> <CANCZdfqMvf1QuS=fNQjRPe3YUbp1zPQW4aorh=VTRHk%2Bf_e8qg@mail.gmail.com> <1037448433.54513.1688441647903@mail.yahoo.com> <CANCZdfrSnS5Xq020jwsY-pgmTCJEn5Ka3Zr5vqt6OK%2Buawc4tA@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
[-- Attachment #1 --]
(Sorry for top posting)
Oh yes, the analysis is fine, and it is quicker to fix than what I had in mind.
I'll take a look at fixing it now, but due to external issues I may have to leave the fix for next weekend.
Pedro.
On Monday, July 3, 2023 at 11:00:51 PM GMT-5, Warner Losh <imp@bsdimp.com> wrote:
On Mon, Jul 3, 2023, 9:34 PM Pedro Giffuni <pfg@freebsd.org> wrote:
Hmm ...
Dragonfly has no armv7 or i386, so they didn't get it too wrong.I guess the int64_t would be a quick fix or another option, which I was consideirng, was to look at unsigning it but taking care of the edge cases ... I was too lazy for that.
Please go ahead and do the quick fix ;)
What makes you say it's a quick fix? If the calculations need 64 bits, int64_t is the proper data type. How is that analysis wrong?
Also, it's tradition that you should fix it...
Warner
[-- Attachment #2 --]
<html><head></head><body><div class="ydpa7de5f4ayahoo-style-wrap" style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:16px;"><div></div>
<div dir="ltr" data-setdir="false">(Sorry for top posting)</div><div><br></div><div dir="ltr" data-setdir="false">Oh yes, the analysis is fine, and it is quicker to fix than what I had in mind.</div><div dir="ltr" data-setdir="false"><br></div><div dir="ltr" data-setdir="false">I'll take a look at fixing it now, but due to external issues I may have to leave the fix for next weekend.</div><div><br></div><div dir="ltr" data-setdir="false">Pedro.</div><div><br></div><div><br></div>
</div><div id="ydp39addca9yahoo_quoted_9236065441" class="ydp39addca9yahoo_quoted">
<div style="font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:13px;color:#26282a;">
<div>
On Monday, July 3, 2023 at 11:00:51 PM GMT-5, Warner Losh <imp@bsdimp.com> wrote:
</div>
<div><br></div>
<div><br></div>
<div><div id="ydp39addca9yiv4277734352"><div><div><div><br clear="none"><br clear="none"><div class="ydp39addca9yiv4277734352gmail_quote"><div dir="ltr" class="ydp39addca9yiv4277734352gmail_attr">On Mon, Jul 3, 2023, 9:34 PM Pedro Giffuni <<a shape="rect" href="mailto:pfg@freebsd.org" rel="nofollow" target="_blank">pfg@freebsd.org</a>> wrote:<br clear="none"></div><blockquote style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;" class="ydp39addca9yiv4277734352gmail_quote"><div><div style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:16px;"><div></div>
<div dir="ltr">Hmm ...</div><div dir="ltr"><br clear="none"></div><div dir="ltr">Dragonfly has no armv7 or i386, so they didn't get it too wrong.</div><div dir="ltr">I guess <span><span style="color:rgb(0,0,0);font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:16px;">the int64_t would be a quick fix or</span></span> another option, which I was consideirng, was to look at unsigning it but taking care of the edge cases ... I was too lazy for that.</div><div><br clear="none"></div><div dir="ltr">Please go ahead and do the quick fix ;)</div></div></div></blockquote></div></div><div><br clear="none"></div><div>What makes you say it's a quick fix? If the calculations need 64 bits, int64_t is the proper data type. How is that analysis wrong?</div><div><br clear="none"></div><div>Also, it's tradition that you should fix it...</div><div><br clear="none"></div><div>Warner</div></div><div id="ydp39addca9yiv4277734352yqtfd43229" class="ydp39addca9yiv4277734352yqt7218625191">
</div></div></div></div>
</div>
</div></body></html>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1767168745.2134945.1688443634249>
