]> git.eshelyaron.com Git - emacs.git/commitdiff
* lisp/emacs-lisp/comp-cstr.el (comp-cstr-type-p): Add assertion.
authorAndrea Corallo <acorallo@gnu.org>
Tue, 15 Oct 2024 19:02:59 +0000 (21:02 +0200)
committerEshel Yaron <me@eshelyaron.com>
Thu, 17 Oct 2024 18:51:01 +0000 (20:51 +0200)
(cherry picked from commit 1686d48417315f809403aeb29559788ef4b755a6)

lisp/emacs-lisp/comp-cstr.el

index e19a507863e7b2a60787c93abed7a224c9ceed2f..7bb331aa6a1ca3f0ed79137090830329ff4dee68 100644 (file)
@@ -935,6 +935,8 @@ Non memoized version of `comp-cstr-intersection-no-mem'."
 
 (defun comp-cstr-type-p (cstr type)
   "Return t if CSTR is certainly of type TYPE."
+  ;; Only basic types are valid input.
+  (cl-assert (symbolp type))
   (when
       (with-comp-cstr-accessors
         (cl-case type