about summary refs log tree commit diff stats
path: root/075channel.mu
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2017-04-18 10:47:35 -0700
committerKartik K. Agaram <vc@akkartik.com>2017-04-18 10:47:35 -0700
commitd6ae00788a2910e16313e8d83906dd4a52cabd43 (patch)
tree74abe815d9d66a84ea4a0af39076d864dc64dedd /075channel.mu
parent5fadf6f371aa34208588b91a86657d8d5e2c6979 (diff)
downloadmu-d6ae00788a2910e16313e8d83906dd4a52cabd43.tar.gz
3828 - make buffers shape-shifting (generic)
Diffstat (limited to '075channel.mu')
-rw-r--r--075channel.mu4
1 files changed, 2 insertions, 2 deletions
diff --git a/075channel.mu b/075channel.mu
index c1d2d5f3..da5ca7e2 100644
--- a/075channel.mu
+++ b/075channel.mu
@@ -391,7 +391,7 @@ def buffer-lines in:&:source:char, buffered-out:&:sink:char -> buffered-out:&:si
   # repeat forever
   eof?:bool <- copy 0/false
   {
-    line:&:buffer <- new-buffer 30
+    line:&:buffer:char <- new-buffer 30
     # read characters from 'in' until newline, copy into line
     {
       +next-character
@@ -487,7 +487,7 @@ F buffer-lines-blocks-until-newline: channel should contain data after writing n
 def drain source:&:source:char -> result:text, source:&:source:char [
   local-scope
   load-ingredients
-  buf:&:buffer <- new-buffer 30
+  buf:&:buffer:char <- new-buffer 30
   {
     c:char, done?:bool <- read source
     break-if done?