1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-15 23:50:44 +00:00
freebsd-ports/math/xspread/files/patch-ad
Thomas Gellekum 4722e9175d Fix leap year handling until 2099.
PR:		17070
Submitted by:	julian
2000-03-10 12:31:34 +00:00

12 lines
334 B
Plaintext

--- interp.c.orig Tue Nov 7 03:17:26 1995
+++ interp.c Fri Mar 10 13:34:37 2000
@@ -516,7 +516,7 @@
mdays[1] = 28 + (yr%4 == 0);
if (mo < 1 || mo > 12 || day < 1 || day > mdays[--mo] ||
- yr > 1999 || yr < 1970) {
+ yr > 2099 || yr < 1970) {
scerror("@dts: invalid argument");
cellerror = CELLERROR;
return(0.0);