projects
/
pspp
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
66d47f9
)
(get_date): Fix typo in time_t overflow test.
author
Jim Meyering
<jim@meyering.net>
Wed, 22 Dec 1999 11:14:05 +0000
(11:14 +0000)
committer
Jim Meyering
<jim@meyering.net>
Wed, 22 Dec 1999 11:14:05 +0000
(11:14 +0000)
From Michael Stone.
lib/getdate.y
patch
|
blob
|
history
diff --git
a/lib/getdate.y
b/lib/getdate.y
index 658da69fcda14200134889cea2bc5619f3be0625..4b24cdc92352b55538e79589c67502e727810281 100644
(file)
--- a/
lib/getdate.y
+++ b/
lib/getdate.y
@@
-99,7
+99,7
@@
enum { MERam, MERpm, MER24 };
/* Information passed to and from the parser. */
struct parser_control
-{
+{
/* The input string remaining to be parsed. */
const char *input;
@@
-1014,7
+1014,7
@@
get_date (const char *p, const time_t *now)
if (! gmt)
return -1;
delta = pc.time_zone * 60 + difftm (gmt, &tm);
- if ((Start - delta < Start) != (delta
<
0))
+ if ((Start - delta < Start) != (delta
>
0))
return -1; /* time_t overflow */
Start -= delta;
}