Skip to content

Commit

Permalink
Pass correct types to :bin
Browse files Browse the repository at this point in the history
The only reason this didn't crash in the past is due to RT#132307
  • Loading branch information
zoffixznet committed Oct 15, 2017
1 parent ebb0521 commit ee0bcbd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/core/Argfiles.pm
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ Rakudo::Internals.REGISTER-DYNAMIC: '$*ARGFILES', {
?? IO::ArgFiles.new(@*ARGS)
!! IO::ArgFiles.new:
(my $in := $*IN),
:nl-in($in.nl-in), :chomp($in.chomp),
:encoding($in.encoding), :bin(nqp::isfalse($in.encoding));
:nl-in($in.nl-in), :chomp($in.chomp), :encoding($in.encoding),
:bin(nqp::p6bool(nqp::isfalse($in.encoding)));
}

# vim: ft=perl6 expandtab sw=4
4 changes: 2 additions & 2 deletions src/core/IO/CatHandle.pm
Original file line number Diff line number Diff line change
Expand Up @@ -66,14 +66,14 @@ my class IO::CatHandle is IO::Handle {
nqp::if(
nqp::istype(
($_ = .open: :r, :$!chomp, :$!nl-in, :enc($!encoding),
:bin(nqp::isfalse($!encoding))),
:bin(nqp::p6bool(nqp::isfalse($!encoding)))),
Failure),
.throw,
($!active-handle = $_))),
nqp::if(
nqp::istype(
($_ := .IO.open: :r, :$!chomp, :$!nl-in, :enc($!encoding),
:bin(nqp::isfalse($!encoding))),
:bin(nqp::p6bool(nqp::isfalse($!encoding)))),
Failure),
.throw,
($!active-handle = $_))),
Expand Down

0 comments on commit ee0bcbd

Please sign in to comment.