diff options
author | Kartik Agaram <vc@akkartik.com> | 2020-09-16 08:45:43 -0700 |
---|---|---|
committer | Kartik Agaram <vc@akkartik.com> | 2020-09-16 08:45:43 -0700 |
commit | c0ea27e40eeb57d6b414735239a10a3804769aeb (patch) | |
tree | eb6c25302c0fc93aee9b36d950974da22b66a31b | |
parent | 37fd51f75443accaeb37f9dfbd9bc7fa175cb0b1 (diff) | |
download | mu-c0ea27e40eeb57d6b414735239a10a3804769aeb.tar.gz |
6784
-rw-r--r-- | apps/rpn.mu | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/rpn.mu b/apps/rpn.mu index 5e2fdbb6..bd0d721f 100644 --- a/apps/rpn.mu +++ b/apps/rpn.mu @@ -61,7 +61,7 @@ fn simplify in: (addr stream byte) -> result/eax: int { var word/ecx: (addr slice) <- address word-storage var stack-storage: int-stack var stack/esi: (addr int-stack) <- address stack-storage - initialize-stack stack, 0x10 + initialize-int-stack stack, 0x10 $simplify:word-loop: { next-word in, word var done?/eax: boolean <- slice-empty? word @@ -109,7 +109,7 @@ fn simplify in: (addr stream byte) -> result/eax: int { result <- pop-int-stack stack } -fn initialize-stack _self: (addr int-stack), n: int { +fn initialize-int-stack _self: (addr int-stack), n: int { var self/esi: (addr int-stack) <- copy _self var d/edi: (addr handle array int) <- get self, data populate d, n |