projects
/
pspp
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2c1196c
)
(tYEAR_UNIT): Increase yyRelYear by $1, not just by 1.
author
Jim Meyering
<jim@meyering.net>
Thu, 27 Feb 1997 05:53:15 +0000
(
05:53
+0000)
committer
Jim Meyering
<jim@meyering.net>
Thu, 27 Feb 1997 05:53:15 +0000
(
05:53
+0000)
From Andreas Schwab.
lib/getdate.y
patch
|
blob
|
history
diff --git
a/lib/getdate.y
b/lib/getdate.y
index f63bebfa17c70e7d0cb51351cfd66087da41cbf5..6a0a186f0d16adb3a9b69438cc2bcece6a0068fb 100644
(file)
--- 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;