Commit 3d19b93
committed
Fix bug in
Properly flush the "imperative" ImperativeIO buffer when realizing the
underlying stream via `getInstream`.
Failing to reset the `first` and `last` refs when realizing the
`StreamIO.instream` from an `ImperativeIO.instream` that is in
"imperative" mode allows subsequent `ImperativeIO.input*` functions to
advance the stream with respect to the "imperative" mode but not
advance the `StreamIO.instream`. After realizing the
`StreamIO.instream` from an `ImpearativeIO.instream`, the stream
should be in "stream" mode and always advance the `StreamIO.instream`.
Fixes #535ImperativeIO.getInstream
1 parent e26362e commit 3d19b93
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
681 | 681 | | |
682 | 682 | | |
683 | 683 | | |
684 | | - | |
| 684 | + | |
685 | 685 | | |
686 | 686 | | |
687 | 687 | | |
| |||
0 commit comments