changeset 888:e40500db9101

(tYEAR_UNIT): Increase yyRelYear by $1, not just by 1. From Andreas Schwab.
author Jim Meyering <jim@meyering.net>
date Thu, 27 Feb 1997 05:53:15 +0000
parents 4b894f959b71
children e9739f52a325
files lib/getdate.y
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lib/getdate.y
+++ b/lib/getdate.y
@@ -347,7 +347,7 @@
 	    yyRelYear += $1 * $2;
 	}
 	| tYEAR_UNIT {
-	    yyRelYear++;
+	    yyRelYear += $1;
 	}
 	| tUNUMBER tMONTH_UNIT {
 	    yyRelMonth += $1 * $2;