about summary refs log tree commit diff stats
path: root/mu.arc.t
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2014-11-26 19:50:40 -0800
committerKartik K. Agaram <vc@akkartik.com>2014-11-26 19:50:40 -0800
commit34b6a2faff8199d52ba3c363cbd41d46c7017b71 (patch)
treecb99b6e8fe89c377d96d2f75ac7d9aa025cf216c /mu.arc.t
parentf184c95ece65ea3ed3373f24a12cc2550caebd1f (diff)
downloadmu-34b6a2faff8199d52ba3c363cbd41d46c7017b71.tar.gz
333
Diffstat (limited to 'mu.arc.t')
-rw-r--r--mu.arc.t3
1 files changed, 2 insertions, 1 deletions
diff --git a/mu.arc.t b/mu.arc.t
index 8534e9f4..21c6014f 100644
--- a/mu.arc.t
+++ b/mu.arc.t
@@ -659,6 +659,7 @@
   (prn "F - 'len' accesses length of array address"))
 
 ; 'sizeof' is a helper to determine the amount of memory required by a type.
+; Only for non-arrays.
 
 (reset)
 (new-trace "sizeof-record")
@@ -679,7 +680,7 @@
      ])))
 (run 'main)
 ;? (prn memory*)
-(if (~is memory*.1 3)
+(if (is memory*.1 2)
   (prn "F - 'sizeof' is different from number of elems"))
 
 ; Regardless of a type's length, you can move it around just like a primitive.