Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
use nqp::seekfh on moar and $!PIO.seek on jvm/parrot
  • Loading branch information
FROGGS committed Apr 16, 2014
1 parent 8bac4dd commit fbf3873
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions src/core/IO.pm
Expand Up @@ -205,7 +205,12 @@ my class IO::Handle does IO::FileTestable {
# 1 -- seek relative to current position
# 2 -- seek from the end of the file
method seek(IO::Handle:D: Int:D $offset, Int:D $whence) {
#?if moar
nqp::seekfh($!PIO, $offset, $whence);
#?endif
#?if !moar
$!PIO.seek(nqp::unbox_i($whence), nqp::unbox_i($offset));
#?endif
True;
}
method tell(IO::Handle:D:) returns Int {
Expand Down
2 changes: 1 addition & 1 deletion tools/build/NQP_REVISION
@@ -1 +1 @@
2014.03-66-g1cf05eb
2014.03-75-g6135feb

0 comments on commit fbf3873

Please sign in to comment.