Skip to content

Commit

Permalink
Make VMDecoder.consume-exactly-bytes use buf8
Browse files Browse the repository at this point in the history
Instead of blob. This reverts IO::Handle reads to return bufs,
as it did before the handle encoding refactor.

Per: https://irclog.perlgeek.de/perl6-dev/2017-05-26#i_14644075
  • Loading branch information
zoffixznet committed May 27, 2017
1 parent abb9b26 commit 9adc69c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/Rakudo/Internals/VMBackedDecoder.pm
Expand Up @@ -43,7 +43,7 @@ my class Rakudo::Internals::VMBackedDecoder is repr('Decoder') {
}

method consume-exactly-bytes(int $bytes --> Blob) {
nqp::ifnull(nqp::decodertakebytes(self, blob8.new, $bytes), Blob)
nqp::ifnull(nqp::decodertakebytes(self, buf8.new, $bytes), Blob)
}
}

Expand Down

0 comments on commit 9adc69c

Please sign in to comment.