about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2020-11-07 18:02:03 -0800
committerKartik Agaram <vc@akkartik.com>2020-11-07 18:02:03 -0800
commitd7ad7f9753442129c60174e2275312a1477cc15e (patch)
treef686ad6bd6d3e83e512e5ebe34549de208a5ddfb
parent5e3927f7e1233e8dd75f19a7cab056ca91ca22c6 (diff)
downloadmu-d7ad7f9753442129c60174e2275312a1477cc15e.tar.gz
7207 - tile: bugfix
-rw-r--r--apps/tile/value-stack.mu2
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/tile/value-stack.mu b/apps/tile/value-stack.mu
index b3269506..a3d05322 100644
--- a/apps/tile/value-stack.mu
+++ b/apps/tile/value-stack.mu
@@ -32,6 +32,8 @@ fn push-int-to-value-stack _self: (addr value-stack), _val: int {
 #?   print-int32-hex-to-real-screen val
   copy-to *dest-addr2, val
   increment *top-addr
+  dest-addr2 <- get dest-addr, type
+  copy-to *dest-addr2, 0  # int
 }
 
 fn push-string-to-value-stack _self: (addr value-stack), val: (handle array byte) {