Skip to content

Commit

Permalink
Make sure $!ins is up to date, pmichaud++
Browse files Browse the repository at this point in the history
  • Loading branch information
lizmat committed Oct 12, 2014
1 parent 94240b4 commit 7f8d176
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/core/IO/Handle.pm
Expand Up @@ -301,12 +301,13 @@ my class IO::Handle does IO {
#?if parrot
my Mu $line := nqp::readlinefh($!PIO);
last if nqp::eoffh($!PIO);
$!ins = $!ins + 1;
take nqp::p6box_s($line).chomp;
#?endif
#?if !parrot
$!ins = $!ins + 1;
take nqp::p6box_s(nqp::readlinefh($!PIO)).chomp;
#?endif
$!ins = $!ins + 1;
}
self.close if $close;
}
Expand All @@ -317,12 +318,13 @@ my class IO::Handle does IO {
#?if parrot
my Mu $line := nqp::readlinefh($!PIO);
last if nqp::eoffh($!PIO);
$!ins = $!ins + 1;
take nqp::p6box_s($line);
#?endif
#?if !parrot
$!ins = $!ins + 1;
take nqp::p6box_s(nqp::readlinefh($!PIO));
#?endif
$!ins = $!ins + 1;
}
self.close if $close;
}
Expand Down

0 comments on commit 7f8d176

Please sign in to comment.