about summary refs log tree commit diff stats
path: root/403unicode.mu
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2020-11-03 13:29:09 -0800
committerKartik Agaram <vc@akkartik.com>2020-11-03 13:29:09 -0800
commit65dcc746937ed4d8e358df4e07127a4036595d77 (patch)
tree23417fef303e3b66eb990a2d2b818b1d25644b61 /403unicode.mu
parent3d1c4216ede8c628558c9fe700fb2be1aa08b473 (diff)
downloadmu-65dcc746937ed4d8e358df4e07127a4036595d77.tar.gz
7163 - first type checks for 'return' statements
Diffstat (limited to '403unicode.mu')
-rw-r--r--403unicode.mu6
1 files changed, 3 insertions, 3 deletions
diff --git a/403unicode.mu b/403unicode.mu
index e9efbc35..b512fb4f 100644
--- a/403unicode.mu
+++ b/403unicode.mu
@@ -68,7 +68,7 @@ fn to-grapheme in: code-point -> _/eax: grapheme {
     }
   }
   # emit trailer bytes, 6 bits from 'in', first two bits '10'
-  var result/edi: int <- copy 0
+  var result/edi: grapheme <- copy 0
   {
     compare num-trailers, 0
     break-if-<=
@@ -211,7 +211,7 @@ $read-grapheme:abort: {
     }
   }
   # prepend trailer bytes
-  var result/edi: int <- copy c
+  var result/edi: grapheme <- copy c
   var num-byte-shifts/edx: int <- copy 1
   {
     compare num-trailers, 0
@@ -304,7 +304,7 @@ $read-grapheme-buffered:abort: {
     }
   }
   # prepend trailer bytes
-  var result/edi: int <- copy c
+  var result/edi: grapheme <- copy c
   var num-byte-shifts/edx: int <- copy 1
   {
     compare num-trailers, 0