NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: kern/49207



The following reply was made to PR kern/49207; it has been noted by GNATS.

From: "Kamil Rytarowski" <n54%gmx.com@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: 
Subject: Re: kern/49207
Date: Thu, 9 Oct 2014 20:32:29 +0200

 Hello,
 
 In case of someone will be interested in sponsorship of these changes, I've introduced a regression in hpcmips
 
   	for (year = EPOCHYEAR; year < POSIX_BASE_YEAR; year++) {
  -		sc->sc_epoch += LEAPYEAR4(year) ? SECYR + SECDAY : SECYR;
  +		sc->sc_epoch += days_per_year(year);
   	}
   	for (year = POSIX_BASE_YEAR; year < EPOCHYEAR; year++) {
  -		sc->sc_epoch -= LEAPYEAR4(year) ? SECYR + SECDAY : SECYR;
  +		sc->sc_epoch -= days_per_year(year);
 
 There is need to multiply days_per_year(year) by SECS_PER_DAY.
 


Home | Main Index | Thread Index | Old Index