about summary refs log tree commit diff stats
path: root/apps
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2020-11-27 00:26:27 -0800
committerKartik Agaram <vc@akkartik.com>2020-11-27 00:26:27 -0800
commit3341af3d926a872c9babdfca5e81aa96f599f8fd (patch)
treea596d9e60bf011b405d6dec845d75e8261c4fdc9 /apps
parent530af63477e5264a312facf4a17b32cf79dbbd96 (diff)
downloadmu-3341af3d926a872c9babdfca5e81aa96f599f8fd.tar.gz
7288
Diffstat (limited to 'apps')
-rw-r--r--apps/arith.mu8
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/arith.mu b/apps/arith.mu
index 2bfec1db..20e29e91 100644
--- a/apps/arith.mu
+++ b/apps/arith.mu
@@ -78,7 +78,7 @@ fn expression _look: grapheme -> _/eax: int, _/esi: grapheme {
       break-if-= $expression:loop
     }
     # read operator
-    var op/ecx: byte <- copy 0
+    var op/ecx: grapheme <- copy 0
     op, look <- operator look
     # read next arg
     var second/edx: int <- copy 0
@@ -124,7 +124,7 @@ fn term _look: grapheme -> _/eax: int, _/esi: grapheme {
       break-if-= $term:loop
     }
     # read operator
-    var op/ecx: byte <- copy 0
+    var op/ecx: grapheme <- copy 0
     op, look <- operator look
     # read next arg
     var second/edx: int <- copy 0
@@ -202,8 +202,8 @@ fn is-add-or-sub? c: grapheme -> _/eax: boolean {
   return 0  # false
 }
 
-fn operator _look: grapheme -> _/ecx: byte, _/esi: grapheme {
-  var op/ecx: byte <- copy _look
+fn operator _look: grapheme -> _/ecx: grapheme, _/esi: grapheme {
+  var op/ecx: grapheme <- copy _look
   var look/esi: grapheme <- get-char
   return op, look
 }