소스 검색

(get_date):
Fix typo when checking for time_t overflow in time zone calculations.

Paul Eggert 25 년 전
부모
커밋
abdde50e1b
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      lib/getdate.y

+ 1 - 1
lib/getdate.y

@@ -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 < Start - delta) != (delta < 0))
 	return -1;	/* time_t overflow */
       Start -= delta;
     }