about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2014-11-29 01:44:06 -0800
committerKartik K. Agaram <vc@akkartik.com>2014-11-29 01:44:06 -0800
commit1955c835ad811574dfd13645bd1d40703d89ecfa (patch)
tree93fc78f45f961c7974d31864fc1550f3b2d3872a
parentd68f8ee5504bfe66aff0e8c6795f24508fa532de (diff)
downloadmu-1955c835ad811574dfd13645bd1d40703d89ecfa.tar.gz
383
-rw-r--r--mu.arc3
1 files changed, 1 insertions, 2 deletions
diff --git a/mu.arc b/mu.arc
index 0955a2f4..e025a5b5 100644
--- a/mu.arc
+++ b/mu.arc
@@ -650,8 +650,7 @@
   (when (acons x)
     (zap canonize x)
     (when typeinfo.x!array
-      (return (+ 1 (* (m `(,v.x integer ,@(cut x 2)))
-                      (sizeof typeinfo.x!elem))))))
+      (return (+ 1 (* array-len.x (sizeof typeinfo.x!elem))))))
   (let type (if (and acons.x (pos 'deref metadata.x))
                   typeinfo.x!elem  ; deref pointer
                 acons.x