We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e4b7e0f commit 003fd65Copy full SHA for 003fd65
src/stream.jl
@@ -118,6 +118,10 @@ function TranscodingStream(codec::Codec, stream::IO;
118
checkbufsize(bufsize)
119
checksharedbuf(sharedbuf, stream)
120
if sharedbuf
121
+ # Here, the compiler cannot infer at compile time that the
122
+ # stream must be a TranscodingStream, so we need to help the
123
+ # compiler along. See https://github.com/JuliaIO/TranscodingStreams.jl/pull/111
124
+ stream::TranscodingStream
125
state = State(Buffer(bufsize), stream.state.buffer1)
126
else
127
state = State(bufsize)
0 commit comments