summaryrefslogtreecommitdiffstats
path: root/array.scm
diff options
context:
space:
mode:
Diffstat (limited to 'array.scm')
-rw-r--r--array.scm2
1 files changed, 1 insertions, 1 deletions
diff --git a/array.scm b/array.scm
index 3eecb7a..08b8114 100644
--- a/array.scm
+++ b/array.scm
@@ -48,7 +48,7 @@
(if (array? obj) (length (array-shape obj)) 0))
(define (array-dimensions ra)
- (map (lambda (ind) (if (zero? (car ind)) (cadr ind) ind))
+ (map (lambda (ind) (if (zero? (car ind)) (+ 1 (cadr ind)) ind))
(array-shape ra)))
(define array:construct