* getdate.y (yylex): Allow space between sign and number.
author |
Paul Eggert <eggert@cs.ucla.edu> |
date |
Sun, 06 Jun 2004 18:55:59 +0000 |
parents |
16347793332c |
children |
af4fd5060a09 |
files |
lib/ChangeLog lib/getdate.y |
diffstat |
2 files changed, 7 insertions(+), 1 deletions(-)
[+]
|
line diff
--- a/lib/ChangeLog
+++ b/lib/ChangeLog
@@ -1,3 +1,8 @@
+2004-06-06 Paul Eggert <eggert@cs.ucla.edu>
+
+ * getdate.y (yylex): Allow space between sign and number.
+ Problem reported by Dan Jacobson.
+
2004-06-01 Paul Eggert <eggert@cs.ucla.edu>
and Jim Meyering <jim@meyering.net>
--- a/lib/getdate.y
+++ b/lib/getdate.y
@@ -844,7 +844,8 @@
if (c == '-' || c == '+')
{
sign = c == '-' ? -1 : 1;
- c = *++pc->input;
+ while (c = *++pc->input, ISSPACE (c))
+ continue;
if (! ISDIGIT (c))
/* skip the '-' sign */
continue;