From: Paul Eggert Date: Fri, 23 Mar 2018 20:10:14 +0000 (-0700) Subject: Fix too-large integer in Hg backend X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=4a805954e918819d736da2e4918d793a11e98513;p=emacs.git Fix too-large integer in Hg backend * lisp/vc/vc-hg.el (vc-hg-state-fast): Don’t assume that 2**32 - 1 is representable as a fixnum. --- diff --git a/lisp/vc/vc-hg.el b/lisp/vc/vc-hg.el index 9dafaef7aaf..14df9d8b673 100644 --- a/lisp/vc/vc-hg.el +++ b/lisp/vc/vc-hg.el @@ -1016,8 +1016,8 @@ hg binary." (not (vc-hg--requirements-understood-p repo)) ;; Dirstate too small to be valid (< (nth 7 dirstate-attr) 40) - ;; We want to store 32-bit unsigned values in fixnums - (< most-positive-fixnum 4294967295) + ;; We want to store 32-bit unsigned values in fixnums. + (zerop (lsh -1 32)) (progn (setf repo-relative-filename (file-relative-name truename repo))