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

Liste des GroupesRevenir à col 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, 08: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 Gentoo64Farley 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 Gentoo53186282@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 Sep 24 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 Gentoo33rbowman
28 Sep 24 ii+- Re: Can't Avoid That Shit Rust - Even On Gentoo1186282@ud0s4.net
28 Sep 24 ii`* Re: Can't Avoid That Shit Rust - Even On Gentoo31Lawrence D'Oliveiro
29 Sep 24 ii `* Re: Can't Avoid That Shit Rust - Even On Gentoo30186282@ud0s4.net
29 Sep 24 ii  `* Re: Can't Avoid That Shit Rust - Even On Gentoo29Lawrence D'Oliveiro
30 Sep 24 ii   `* Re: Can't Avoid That Shit Rust - Even On Gentoo28186282@ud0s4.net
30 Sep 24 ii    +* Re: Can't Avoid That Shit Rust - Even On Gentoo24Lawrence D'Oliveiro
30 Sep 24 ii    i`* Re: Can't Avoid That Shit Rust - Even On Gentoo23rbowman
30 Sep 24 ii    i +* Re: Can't Avoid That Shit Rust - Even On Gentoo21186282@ud0s4.net
30 Sep 24 ii    i i+- Re: Can't Avoid That Shit Rust - Even On Gentoo1rbowman
30 Sep 24 ii    i i`* Re: Can't Avoid That Shit Rust - Even On Gentoo19candycanearter07
30 Sep 24 ii    i i +- Re: Can't Avoid That Shit Rust - Even On Gentoo1Lawrence D'Oliveiro
1 Oct 24 ii    i i +- Re: Can't Avoid That Shit Rust - Even On Gentoo1rbowman
1 Oct 24 ii    i i +- Re: Can't Avoid That Shit Rust - Even On Gentoo1186282@ud0s4.net
1 Oct 24 ii    i i +- Re: Can't Avoid That Shit Rust - Even On Gentoo1Joel
2 Oct 24 ii    i i `* Re: Can't Avoid That Shit Rust - Even On Gentoo14186282@ud0s4.net
2 Oct 24 ii    i i  +* Re: Can't Avoid That Shit Rust - Even On Gentoo2Farley Flud
3 Oct 24 ii    i i  i`- Re: Can't Avoid That Shit Rust - Even On Gentoo1186282@ud0s4.net
2 Oct 24 ii    i i  `* Re: Can't Avoid That Shit Rust - Even On Gentoo11Lawrence D'Oliveiro
3 Oct 24 ii    i i   `* Re: Can't Avoid That Shit Rust - Even On Gentoo10186282@ud0s4.net
3 Oct 24 ii    i i    `* Re: Can't Avoid That Shit Rust - Even On Gentoo9Lawrence D'Oliveiro
4 Oct 24 ii    i i     `* Re: Can't Avoid That Shit Rust - Even On Gentoo8186282@ud0s4.net
4 Oct 24 ii    i i      +* Re: Can't Avoid That Shit Rust - Even On Gentoo5candycanearter07
4 Oct 24 ii    i i      i`* Re: Can't Avoid That Shit Rust - Even On Gentoo4Cy DeMillion
5 Oct 24 ii    i i      i `* Re: Can't Avoid That Shit Rust - Even On Gentoo3Joel
5 Oct 24 ii    i i      i  +- Re: Can't Avoid That Shit Rust - Even On Gentoo1DFS
8 Oct 24 ii    i i      i  `- Re: Can't Avoid That Shit Rust - Even On Gentoo1%
4 Oct 24 ii    i i      `* Re: Can't Avoid That Shit Rust - Even On Gentoo2Lawrence D'Oliveiro
5 Oct 24 ii    i i       `- Re: Can't Avoid That Shit Rust - Even On Gentoo1DFS
30 Sep 24 ii    i `- Re: Can't Avoid That Shit Rust - Even On Gentoo1Lawrence D'Oliveiro
30 Sep 24 ii    `* Re: Can't Avoid That Shit Rust - Even On Gentoo3186282@ud0s4.net
30 Sep 24 ii     `* Re: Can't Avoid That Shit Rust - Even On Gentoo2Lawrence D'Oliveiro
30 Sep 24 ii      `- Re: Can't Avoid That Shit Rust - Even On Gentoo1186282@ud0s4.net
2 Oct 24 i+* Re: Can't Avoid That Shit Rust - Even On Gentoo2186282@ud0s4.net
2 Oct 24 ii`- Re: Can't Avoid That Shit Rust - Even On Gentoo1rbowman
7 Oct 24 i`- Re: Can't Avoid That Shit Rust - Even On Gentoo1Rich Alderson
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