]> git.eshelyaron.com Git - emacs.git/commitdiff
* lisp/emacs-lisp/comp-cstr.el (comp-cstr-fixnum-p): Fix.
authorAndrea Corallo <acorallo@gnu.org>
Wed, 10 Apr 2024 15:35:08 +0000 (17:35 +0200)
committerEshel Yaron <me@eshelyaron.com>
Wed, 10 Apr 2024 20:31:10 +0000 (22:31 +0200)
(cherry picked from commit 219b98916bc498bf15bbef6577af648834d4727d)

lisp/emacs-lisp/comp-cstr.el

index 6509def76a2f951f87dd91578a7854fbb2a506ab..65240550f6b03850e69c03bb16d288a6322333d3 100644 (file)
@@ -911,7 +911,9 @@ Non memoized version of `comp-cstr-intersection-no-mem'."
 (defun comp-cstr-fixnum-p (cstr)
   "Return t if CSTR is certainly a fixnum."
   (with-comp-cstr-accessors
-    (when (null (neg cstr))
+    (when (and (null (neg cstr))
+               (null (valset cstr))
+               (null (typeset cstr)))
       (when-let (range (range cstr))
         (let* ((low (caar range))
                (high (cdar (last range))))