From bd58d18a2308ae5b53a6f5df1e67203739396d8f Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Tue, 18 Apr 2017 11:02:49 -0700 Subject: 3829 --- html/088file.mu.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'html/088file.mu.html') diff --git a/html/088file.mu.html b/html/088file.mu.html index 388b57a5..794e9592 100644 --- a/html/088file.mu.html +++ b/html/088file.mu.html @@ -101,14 +101,14 @@ if ('onhashchange' in window) { 40 load-ingredients 41 source:&:source:char, error?:bool <- start-reading resources, filename 42 return-if error?, 0/contents - 43 buf:&:buffer <- new-buffer 30/capacity + 43 buf:&:buffer:char <- new-buffer 30/capacity 44 { 45 ¦ c:char, done?:bool, source <- read source 46 ¦ break-if done? 47 ¦ buf <- append buf, c 48 ¦ loop 49 } - 50 contents <- buffer-to-array buf + 50 contents <- buffer-to-array buf 51 ] 52 53 def start-reading-from-fake-resource resources:&:resources, resource:text -> contents:&:source:char, error?:bool [ @@ -226,14 +226,14 @@ if ('onhashchange' in window) { 165 lock:location <- get-location *resources, lock:offset 166 wait-for-reset-then-set lock 167 # compute new file contents -168 buf:&:buffer <- new-buffer 30 +168 buf:&:buffer:char <- new-buffer 30 169 { 170 ¦ c:char, done?:bool, source <- read source 171 ¦ break-if done? 172 ¦ buf <- append buf, c 173 ¦ loop 174 } -175 contents:text <- buffer-to-array buf +175 contents:text <- buffer-to-array buf 176 new-resource:resource <- merge filename, contents 177 # write to resources 178 curr-filename:text <- copy 0 -- cgit 1.4.1-2-gfad0