Skip to content

Commit

Permalink
fix: array rank
Browse files Browse the repository at this point in the history
  • Loading branch information
g000001 committed Mar 9, 2012
1 parent dc2060d commit 759d3fe
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions srfi-58.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,9 @@
(iter dims) ))

(defun list->uniform-array (rank dims type list)
(let ((rank (or rank (car dims))))
(srfi-63:list->array rank (funcall type) list)))
(let ((rank (or rank (let ((dim (length dims)))
(if (zerop dim) 1 dim) ) )))
(srfi-63:list->array rank (funcall type) list) ))

(defun read..sharp (c port read)
(let ((rank read))
Expand Down

0 comments on commit 759d3fe

Please sign in to comment.