about summary refs log tree commit diff stats
path: root/apps/mu.subx
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2020-07-25 11:04:34 -0700
committerKartik Agaram <vc@akkartik.com>2020-07-25 11:04:34 -0700
commitbf0a6b69dcda5fcba5507399fbb78e656f049f98 (patch)
treea4d9a13a4231e4f81c4fffa3b9658da9b656491d /apps/mu.subx
parent32055c369b9e7aeb211dbc92834fe5bcaa0540c6 (diff)
downloadmu-bf0a6b69dcda5fcba5507399fbb78e656f049f98.tar.gz
6671 - bugfix in generic functions
We need to remember to clear local variables. And there's a good question
here of how Mu supports variables of type stream or table. Or other user-defined
types that inline arrays.
Diffstat (limited to 'apps/mu.subx')
-rw-r--r--apps/mu.subx1
1 files changed, 1 insertions, 0 deletions
diff --git a/apps/mu.subx b/apps/mu.subx
index ec94a9ad..c8de423b 100644
--- a/apps/mu.subx
+++ b/apps/mu.subx
@@ -12277,6 +12277,7 @@ check-mu-call:  # stmt: (addr stmt), callee: (addr function), fn: (addr function
     68/push 0/imm32/write
     # save a pointer to type-parameters-storage at type-parameters
     89/<- *(ebp-4) 4/r32/esp
+    (clear-stream *(ebp-4))
     # . save registers
     50/push-eax
     51/push-ecx