about summary refs log tree commit diff stats
path: root/apps/factorial2.subx
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2019-11-30 11:14:49 -0800
committerKartik Agaram <vc@akkartik.com>2019-11-30 11:14:49 -0800
commit931b17daa048abbe837fa575e296b08b3d99315b (patch)
tree09d6a7342efaac4305dac601aae518f6f18f4095 /apps/factorial2.subx
parent1d4e6a76efedb756bb4a86ef067593b2b061f594 (diff)
downloadmu-931b17daa048abbe837fa575e296b08b3d99315b.tar.gz
5782 - fix a widespread bug with Heap-size
Diffstat (limited to 'apps/factorial2.subx')
-rw-r--r--apps/factorial2.subx2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/factorial2.subx b/apps/factorial2.subx
index c409fbfb..ecaccbcf 100644
--- a/apps/factorial2.subx
+++ b/apps/factorial2.subx
@@ -26,7 +26,7 @@ Entry:  # run tests if necessary, compute `factorial(5)` if not
     # . Heap = new-segment(Heap-size)
     # . . push args
     68/push Heap/imm32
-    68/push Heap-size/imm32
+    ff 6/subop/push *Heap-size
     # . . call
     e8/call new-segment/disp32
     # . . discard args