[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] master b1bb791: Fix probing for pre-1970 DST
From: |
Paul Eggert |
Subject: |
[Emacs-diffs] master b1bb791: Fix probing for pre-1970 DST |
Date: |
Wed, 14 Nov 2018 14:45:16 -0500 (EST) |
branch: master
commit b1bb7917c15f880dc1c913a1e7c150396af873dc
Author: Paul Eggert <address@hidden>
Commit: Paul Eggert <address@hidden>
Fix probing for pre-1970 DST
* lisp/calendar/cal-dst.el (calendar-next-time-zone-transition):
Fix recently-introduced rounding bug when probing for DST
transitions before 1970 (Bug#33380).
---
lisp/calendar/cal-dst.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lisp/calendar/cal-dst.el b/lisp/calendar/cal-dst.el
index 25264bd..8392e81 100644
--- a/lisp/calendar/cal-dst.el
+++ b/lisp/calendar/cal-dst.el
@@ -154,7 +154,7 @@ Return nil if no such transition can be found."
(while
;; Set PROBE to halfway between LO and HI, rounding down.
;; If PROBE equals LO, we are done.
- (not (= lo (setq probe (/ (+ lo hi) 2))))
+ (not (= lo (setq probe (floor (+ lo hi) 2))))
;; Set either LO or HI to PROBE, depending on probe results.
(if (eq (car (current-time-zone probe)) hi-utc-diff)
(setq hi probe)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] master b1bb791: Fix probing for pre-1970 DST,
Paul Eggert <=