Skip to content
Snippets Groups Projects
Commit c5a7249b authored by ram's avatar ram
Browse files

When checking that the number of args match the number of arg types,

watch out for :CONSTANT args.
parent b522e767
No related branches found
No related tags found
No related merge requests found
......@@ -1532,7 +1532,11 @@
(type (or operand-parse null) more-op) (string what))
(unless (eq types :unspecified)
(let ((num (+ (length ops) (if more-op 1 0))))
(unless (= (length types) num)
(unless (= (count-if-not #'(lambda (x)
(and (consp x)
(eq (car x) :constant)))
types)
num)
(error "Expected ~D ~A type~P: ~S." num what types num)))
(when more-op
(let ((mtype (car (last types))))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment