* lisp/vc/vc-hg.el (vc-hg-state-fast):
Don’t assume that 2**32 - 1 is representable as a fixnum.
(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))