From 54d6b079bf44cbf10ab8f9f90984b8e197c16d46 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Thu, 27 Feb 1997 05:53:15 +0000 Subject: [PATCH] (tYEAR_UNIT): Increase yyRelYear by $1, not just by 1. From Andreas Schwab. --- lib/getdate.y | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/getdate.y b/lib/getdate.y index f63bebfa17..6a0a186f0d 100644 --- a/lib/getdate.y +++ b/lib/getdate.y @@ -347,7 +347,7 @@ relunit : tUNUMBER tYEAR_UNIT { yyRelYear += $1 * $2; } | tYEAR_UNIT { - yyRelYear++; + yyRelYear += $1; } | tUNUMBER tMONTH_UNIT { yyRelMonth += $1 * $2; -- 2.30.2