]> git.eshelyaron.com Git - emacs.git/commitdiff
fix type hints error kind
authorAndrea Corallo <akrl@sdf.org>
Fri, 22 Nov 2019 13:00:02 +0000 (14:00 +0100)
committerAndrea Corallo <akrl@sdf.org>
Wed, 1 Jan 2020 10:38:08 +0000 (11:38 +0100)
lisp/emacs-lisp/comp.el

index 666d467051ef4fe7bfb5b10fea4629f4a8624c98..5ebaf9f0f5a01986e7348a5f1fd029b7e31ca7b2 100644 (file)
@@ -1789,10 +1789,12 @@ Prepare every function for final compilation and drive the C back-end."
 ;; are assumed just to be true. Use with extreme caution...
 
 (defun comp-hint-fixnum (x)
-  (cl-assert (fixnump x)))
+  (unless (fixnump x)
+    (signal 'wrong-type-argument x)))
 
 (defun comp-hint-cons (x)
-  (cl-assert (consp x)))
+  (unless (consp x)
+    (signal 'wrong-type-argument x)))
 
 \f
 ;; Some entry point support code.