VALUES-NUMBER-FROM-TYPE did not compute the right number for types with &optional.

This commit is contained in:
Juan Jose Garcia Ripoll 2012-07-08 23:37:23 +02:00
parent 5d2dcedfe6
commit 03f8e19495

View file

@ -120,7 +120,7 @@
(values 0 MULTIPLE-VALUES-LIMIT))
((or (atom type) (not (eq (first type) 'VALUES)))
(values 1 1))
((or (member '&rest type) (member 'optional type))
((or (member '&rest type) (member '&optional type))
(values 0 MULTIPLE-VALUES-LIMIT))
(t
(let ((l (1- (length type))))