diff options
author | Jim Meyering <jim@meyering.net> | 1997-02-27 05:53:15 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 1997-02-27 05:53:15 +0000 |
commit | 8c93627ccb561b3f91924e2406e7484b3da49107 (patch) | |
tree | b5270f9aaabbcf6301c4c4e2ca04cade5682515a /lib | |
parent | 80409f292db3d728aa2010f1a11ec3d85fd5f40e (diff) | |
download | coreutils-8c93627ccb561b3f91924e2406e7484b3da49107.tar.xz |
(tYEAR_UNIT): Increase yyRelYear by $1, not just by 1.
From Andreas Schwab.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/getdate.y | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/getdate.y b/lib/getdate.y index f63bebfa1..6a0a186f0 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; |