We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4fe625c commit 418a19bCopy full SHA for 418a19b
lisp/l/array.l
@@ -99,7 +99,7 @@
99
(setq entity (instantiate element-type dim))
100
(setq a entity)
101
(setq dim (list dim)))
102
- (t
+ ((consp dim)
103
(setq a (instantiate array))
104
(let* ((i 0)
105
(rank (length dim))
@@ -120,7 +120,8 @@
120
(setf (array-displaced-index-offset a) displaced-index-offset)
121
(do ((i 0 (1+ i)))
122
((>= i rank))
123
- (setslot a array (+ i 5) (elt dim i))))))
+ (setslot a array (+ i 5) (elt dim i)))))
124
+ (t (error "integer or list expected")))
125
(when initial-element (fill entity initial-element))
126
(when initial-contents
127
(fill-initial-contents entity 0 dim initial-contents))
0 commit comments