From: Jim Meyering Date: Thu, 27 Feb 1997 05:53:15 +0000 (+0000) Subject: (tYEAR_UNIT): Increase yyRelYear by $1, not just by 1. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=54d6b079bf44cbf10ab8f9f90984b8e197c16d46;p=pspp (tYEAR_UNIT): Increase yyRelYear by $1, not just by 1. From Andreas Schwab. --- 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;