projects
/
sbcl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
1.0.27.13: more RET on x86oids
[sbcl.git]
/
src
/
code
/
loop.lisp
diff --git
a/src/code/loop.lisp
b/src/code/loop.lisp
index
565ab9a
..
6b9a43a
100644
(file)
--- a/
src/code/loop.lisp
+++ b/
src/code/loop.lisp
@@
-916,11
+916,8
@@
code to be loaded.
;;;; loop types
(defun loop-typed-init (data-type &optional step-var-p)
;;;; loop types
(defun loop-typed-init (data-type &optional step-var-p)
- (cond
- ((null data-type)
- nil)
- ((sb!xc:subtypep data-type 'number)
- (let ((init (if step-var-p 1 0)))
+ (when (and data-type (sb!xc:subtypep data-type 'number))
+ (let ((init (if step-var-p 1 0)))
(flet ((like (&rest types)
(coerce init (find-if (lambda (type)
(sb!xc:subtypep data-type type))
(flet ((like (&rest types)
(coerce init (find-if (lambda (type)
(sb!xc:subtypep data-type type))
@@
-935,11
+932,7
@@
code to be loaded.
'(complex long-float)
'(complex float)))
(t
'(complex long-float)
'(complex float)))
(t
- init)))))
- ((sb!xc:subtypep data-type 'vector)
- (coerce nil data-type))
- (t
- nil)))
+ init))))))
(defun loop-optional-type (&optional variable)
;; No variable specified implies that no destructuring is permissible.
(defun loop-optional-type (&optional variable)
;; No variable specified implies that no destructuring is permissible.