summaryrefslogtreecommitdiff
path: root/lib/getdate.y
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1997-02-27 05:53:15 +0000
committerJim Meyering <jim@meyering.net>1997-02-27 05:53:15 +0000
commit8c93627ccb561b3f91924e2406e7484b3da49107 (patch)
treeb5270f9aaabbcf6301c4c4e2ca04cade5682515a /lib/getdate.y
parent80409f292db3d728aa2010f1a11ec3d85fd5f40e (diff)
downloadcoreutils-8c93627ccb561b3f91924e2406e7484b3da49107.tar.xz
(tYEAR_UNIT): Increase yyRelYear by $1, not just by 1.
From Andreas Schwab.
Diffstat (limited to 'lib/getdate.y')
-rw-r--r--lib/getdate.y2
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;