From 219b98916bc498bf15bbef6577af648834d4727d Mon Sep 17 00:00:00 2001 From: Andrea Corallo Date: Wed, 10 Apr 2024 17:35:08 +0200 Subject: * lisp/emacs-lisp/comp-cstr.el (comp-cstr-fixnum-p): Fix. --- lisp/emacs-lisp/comp-cstr.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'lisp/emacs-lisp/comp-cstr.el') diff --git a/lisp/emacs-lisp/comp-cstr.el b/lisp/emacs-lisp/comp-cstr.el index d6cb887759f..7452b8568de 100644 --- a/lisp/emacs-lisp/comp-cstr.el +++ b/lisp/emacs-lisp/comp-cstr.el @@ -912,7 +912,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)))) -- cgit v1.2.3