Re: Can't Avoid That Shit Rust - Even On Gentoo

Liste des GroupesRevenir à ol advocacy 
Sujet : Re: Can't Avoid That Shit Rust - Even On Gentoo
De : ldo (at) *nospam* nz.invalid (Lawrence D'Oliveiro)
Groupes : comp.os.linux.advocacy comp.os.linux.misc
Date : 30. Sep 2024, 09:56:04
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vddlik$254hd$12@dont-email.me>
References : 1 2 3 4 5 6 7 8 9 10 11 12
User-Agent : Pan/0.160 (Toresk; )
On 30 Sep 2024 07:21:49 GMT, rbowman wrote:

On Mon, 30 Sep 2024 06:03:29 -0000 (UTC), Lawrence D'Oliveiro wrote:
 
Fun fact: I was reworking an old perpetual-calendar program I first
wrote back in 1980, to use Fortran 90, a few months ago. And I found a
bug in my algorithm that never showed up in any years from the 20th
century, but did manifest itself in the 21st century.
 
Y2K rides again...

No, it wasn’t that. I had a full four digits for the year number (even
back then, I had this hazy premonition ...). The bug actually manifested
itself from 2004 onwards.

Here’s the patch that fixed the Fortran-90 version:

    diff --git a/calend.f90 b/calend.f90
    index e172fd5..dcbfdc3 100644
    --- a/calend.f90
    +++ b/calend.f90
    @@ -48,14 +48,12 @@ contains
                 idx = idx + 1
                 res = mod(yr, divs(idx))
                 yr = yr / divs(idx)
    -            if (res == 0) then
    +            if (flip_leap .and. res == 0) then
    +                leap = .not. leap
                     rem = rem - l
                 else
                     flip_leap = .false.
                 end if
    -            if (flip_leap) then
    -                leap = .not. leap
    -            end if
                 if (yr == 0) &
                     exit
                 rem = rem + yr * l

Date Sujet#  Auteur
21 Sep 24 * Can't Avoid That Shit Rust - Even On Gentoo51Farley Flud
21 Sep 24 +- Re: Can't Avoid That Shit Rust - Even On Gentoo1Farley Flud
21 Sep 24 +- Re: Can't Avoid That Fraud Feeb - Even On cola1DFS
21 Sep 24 +- Re: Can't Avoid Those Feeb Lies - Even On cola1DFS
22 Sep 24 +* Re: Can't Avoid That Shit Rust - Even On Gentoo4Woozy Song
22 Sep 24 i`* Re: Can't Avoid That Shit Rust - Even On Gentoo3%
22 Sep 24 i `* Re: Can't Avoid That Shit Rust - Even On Gentoo2Chris Ahlstrom
22 Sep 24 i  `- Re: Can't Avoid That Shit Rust - Even On Gentoo1%
23 Sep 24 +- Re: Can't Avoid That Shit Rust - Even On Gentoo1Grzesiek11
24 Sep 24 +* Re: Can't Avoid That Shit Rust - Even On Gentoo40186282@ud0s4.net
24 Sep 24 i+* Re: Can't Avoid That Shit Rust - Even On Gentoo6Lawrence D'Oliveiro
24 Sep 24 ii+* Re: Can't Avoid That Shit Rust - Even On Gentoo2Pancho
25 Sep 24 iii`- Re: Can't Avoid That Shit Rust - Even On Gentoo1186282@ud0s4.net
25 Sep 24 ii`* Re: Can't Avoid That Shit Rust - Even On Gentoo3186282@ud0s4.net
25 Sep 24 ii +- Re: Can't Avoid That Shit Rust - Even On Gentoo1Lawrence D'Oliveiro
25 Sep 24 ii `- Re: Can't Avoid That Shit Rust - Even On Gentoo1rbowman
24 Sep 24 i+* Re: Can't Avoid That Shit Rust - Even On Gentoo4D
25 Sep 24 ii`* Re: Can't Avoid That Shit Rust - Even On Gentoo3186282@ud0s4.net
25 Sep 24 ii `* Re: Can't Avoid That Shit Rust - Even On Gentoo2Lawrence D'Oliveiro
28 Sep04:32 ii  `- Re: Can't Avoid That Shit Rust - Even On Gentoo1186282@ud0s4.net
24 Sep 24 i+* Re: Can't Avoid That Shit Rust - Even On Gentoo3rek2 hispagatos
24 Sep 24 ii`* Re: Can't Avoid That Shit Rust - Even On Gentoo2The Natural Philosopher
24 Sep 24 ii `- Re: Can't Avoid That Shit Rust - Even On Gentoo1Lawrence D'Oliveiro
24 Sep 24 i+* Re: Can't Avoid That Shit Rust - Even On Gentoo2rbowman
24 Sep 24 ii`- Re: Can't Avoid That Shit Rust - Even On Gentoo1Lawrence D'Oliveiro
24 Sep 24 i+- Re: Can't Avoid That Shit Rust - Even On Gentoo1The Natural Philosopher
25 Sep 24 i+* Re: Can't Avoid That Shit Rust - Even On Gentoo21rbowman
28 Sep09:10 ii+- Re: Can't Avoid That Shit Rust - Even On Gentoo1186282@ud0s4.net
28 Sep09:38 ii`* Re: Can't Avoid That Shit Rust - Even On Gentoo19Lawrence D'Oliveiro
29 Sep07:11 ii `* Re: Can't Avoid That Shit Rust - Even On Gentoo18186282@ud0s4.net
29 Sep07:38 ii  `* Re: Can't Avoid That Shit Rust - Even On Gentoo17Lawrence D'Oliveiro
30 Sep07:18 ii   `* Re: Can't Avoid That Shit Rust - Even On Gentoo16186282@ud0s4.net
30 Sep08:03 ii    +* Re: Can't Avoid That Shit Rust - Even On Gentoo12Lawrence D'Oliveiro
30 Sep09:21 ii    i`* Re: Can't Avoid That Shit Rust - Even On Gentoo11rbowman
30 Sep09:43 ii    i +* Re: Can't Avoid That Shit Rust - Even On Gentoo9186282@ud0s4.net
30 Sep21:31 ii    i i+- Re: Can't Avoid That Shit Rust - Even On Gentoo1rbowman
30 Sep21:40 ii    i i`* Re: Can't Avoid That Shit Rust - Even On Gentoo7candycanearter07
1 Oct00:00 ii    i i +- Re: Can't Avoid That Shit Rust - Even On Gentoo1Lawrence D'Oliveiro
1 Oct03:59 ii    i i +- Re: Can't Avoid That Shit Rust - Even On Gentoo1rbowman
1 Oct05:56 ii    i i +- Re: Can't Avoid That Shit Rust - Even On Gentoo1186282@ud0s4.net
1 Oct10:01 ii    i i +- Re: Can't Avoid That Shit Rust - Even On Gentoo1Joel
2 Oct06:07 ii    i i `* Re: Can't Avoid That Shit Rust - Even On Gentoo2186282@ud0s4.net
2 Oct11:49 ii    i i  `- Re: Can't Avoid That Shit Rust - Even On Gentoo1Farley Flud
30 Sep09:56 ii    i `- Re: Can't Avoid That Shit Rust - Even On Gentoo1Lawrence D'Oliveiro
30 Sep09:40 ii    `* Re: Can't Avoid That Shit Rust - Even On Gentoo3186282@ud0s4.net
30 Sep09:56 ii     `* Re: Can't Avoid That Shit Rust - Even On Gentoo2Lawrence D'Oliveiro
30 Sep10:09 ii      `- Re: Can't Avoid That Shit Rust - Even On Gentoo1186282@ud0s4.net
2 Oct06:59 i`* Re: Can't Avoid That Shit Rust - Even On Gentoo2186282@ud0s4.net
2 Oct09:19 i `- Re: Can't Avoid That Shit Rust - Even On Gentoo1rbowman
24 Sep 24 +- Re: Can't Avoid That Shit Rust - Even On Gentoo1Pancho
25 Sep 24 `- Re: Too many "svg" elements presume your background is white, never black.1Lawrence D'Oliveiro

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal