Fixed typo in type propagators for ASET/AREF

This commit is contained in:
Juan Jose Garcia Ripoll 2009-07-04 19:54:40 +02:00
parent 39d9ee467d
commit 8034185d4a

View file

@ -40,13 +40,13 @@ compute it. This version only handles the simplest cases."
(def-type-propagator si::aset (fname obj array &rest indices)
(let* ((array-type (c1form-primary-type array))
(elt-type (or (type-from-array-elt array) t)))
(elt-type (or (type-from-array-elt array-type) t)))
(values (list* elt-type array-type (make-list (length indices) :initial-element 'si::index))
elt-type)))
(def-type-propagator aref (fname array &rest indices)
(let* ((array-type (c1form-primary-type array))
(elt-type (or (type-from-array-elt array) t)))
(elt-type (or (type-from-array-elt array-type) t)))
(values (list* array-type (make-list (length indices) :initial-element 'si::index))
elt-type)))