]> git.eshelyaron.com Git - emacs.git/commitdiff
Avoid using unportable integer in org-clock
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 27 Mar 2018 20:48:13 +0000 (13:48 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 27 Mar 2018 20:48:36 +0000 (13:48 -0700)
* lisp/org/org-clock.el (org-clock--oldest-date): Avoid use of an
integer outside portable Emacs range.  Go back to using a simple
check, since decode-time should no longer infloop.

lisp/org/org-clock.el

index 4c5fcc64b0fccc372202ad3a2e70fbb8927af5e4..c124abd39181997608720115ac438792f1c9afda 100644 (file)
@@ -478,17 +478,7 @@ to add an effort property.")
          (funcall dichotomy
                   most-negative-fixnum
                   0
-                  (lambda (m)
-                     ;; libc in macOS 10.6 hangs when decoding times
-                     ;; around year -2**31.  Limit `high' not to go
-                     ;; any earlier than that.
-                     (unless (and (eq system-type 'darwin)
-                                  (string-match-p
-                                   "10\\.6\\.[[:digit:]]"
-                                   (shell-command-to-string
-                                    "sw_vers -productVersion"))
-                                  (<= m -1034058203135))
-                       (ignore-errors (decode-time (list m 0)))))))
+                  (lambda (m) (ignore-errors (decode-time (list m 0))))))
         (low
          (funcall dichotomy
                   most-negative-fixnum