about summary refs log tree commit diff stats
path: root/apps
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2020-07-26 22:44:25 -0700
committerKartik Agaram <vc@akkartik.com>2020-07-26 22:51:21 -0700
commite2c22ad4d9cbc99f4f256559819650c4d74261af (patch)
tree8dea6c84dd2de5443627bdeeba3dc09ea106f713 /apps
parentf7a90521d13e193dbddffae02d1eba6f729f6e59 (diff)
downloadmu-e2c22ad4d9cbc99f4f256559819650c4d74261af.tar.gz
6681
Diffstat (limited to 'apps')
-rwxr-xr-xapps/mubin362269 -> 362269 bytes
-rw-r--r--apps/mu.subx4
2 files changed, 2 insertions, 2 deletions
diff --git a/apps/mu b/apps/mu
index db6c157a..7ae8daf3 100755
--- a/apps/mu
+++ b/apps/mu
Binary files differdiff --git a/apps/mu.subx b/apps/mu.subx
index 06c963b9..536bca5d 100644
--- a/apps/mu.subx
+++ b/apps/mu.subx
@@ -12810,7 +12810,7 @@ size-of-deref:  # v: (addr var) -> result/eax: int
       3d/compare-eax-and 0/imm32/false
       74/jump-if-= break/disp8
       (size-of-array %ecx)  # => eax
-      eb/jump $size-of:end/disp8
+      eb/jump $size-of-deref:end/disp8
     }
     # if (!t->is-atom?) t = lookup(t->left)
     {
@@ -12879,7 +12879,7 @@ size-of-array:  # a: (addr type-tree) -> result/eax: int
     (lookup *(ecx+0xc) *(ecx+0x10))  # Type-tree-right Type-tree-right => eax
     (lookup *(eax+4) *(eax+8))  # Type-tree-left Type-tree-left => eax
     8b/-> *(eax+8) 1/r32/ecx  # Type-tree-value-size
-    # return array-size * size-of(elem-type)
+    # return 4 + array-size * size-of(elem-type)
     (size-of-type-id-as-array-element %edx)  # => eax
     f7 4/subop/multiply-into-eax %ecx
     05/add-to-eax 4/imm32  # for array size