aboutsummaryrefslogtreecommitdiffstats
path: root/math/xspread
diff options
context:
space:
mode:
authorThomas Gellekum <tg@FreeBSD.org>2000-03-10 20:31:34 +0800
committerThomas Gellekum <tg@FreeBSD.org>2000-03-10 20:31:34 +0800
commit4722e9175d4230120225e6764de2d3727e5248c7 (patch)
tree65bcdb8f922a124964069c899e301f4625c61f81 /math/xspread
parent198653ab480edc578ff627c84d1ef9138f066fd9 (diff)
downloadfreebsd-ports-4722e9175d4230120225e6764de2d3727e5248c7.tar.gz
freebsd-ports-4722e9175d4230120225e6764de2d3727e5248c7.tar.zst
freebsd-ports-4722e9175d4230120225e6764de2d3727e5248c7.zip
Fix leap year handling until 2099.
PR: 17070 Submitted by: julian
Notes
Notes: svn path=/head/; revision=26714
Diffstat (limited to 'math/xspread')
-rw-r--r--math/xspread/files/patch-ad11
1 files changed, 11 insertions, 0 deletions
diff --git a/math/xspread/files/patch-ad b/math/xspread/files/patch-ad
new file mode 100644
index 000000000000..da022c4c23ec
--- /dev/null
+++ b/math/xspread/files/patch-ad
@@ -0,0 +1,11 @@
+--- 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);