projects
/
mit-scheme.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ee798e6
)
Fix bug: get-output-bytevector must flush the buffer.
author
Chris Hanson
<org/chris-hanson/cph>
Fri, 13 Jan 2017 08:50:19 +0000
(
00:50
-0800)
committer
Chris Hanson
<org/chris-hanson/cph>
Fri, 13 Jan 2017 08:50:19 +0000
(
00:50
-0800)
Actually this is kind of a bug: output to bytevectors shouldn't be buffered at
all.
src/runtime/binary-port.scm
patch
|
blob
|
history
diff --git
a/src/runtime/binary-port.scm
b/src/runtime/binary-port.scm
index f422e9304fb0de9277af903603ce5ca1b1445ee1..01836ffe719eab25bb87a73ded1a320d97e23301 100644
(file)
--- a/
src/runtime/binary-port.scm
+++ b/
src/runtime/binary-port.scm
@@
-160,6
+160,7
@@
USA.
(define (get-output-bytevector port)
(guarantee bytevector-output-port? port 'get-output-bytevector)
+ (flush-binary-output-port port)
((output-sink-custom-ref (buffer-source/sink (port-output-buffer port)) 1)))
(define (bytevector-output-port? object)