Skip to content

Commit

Permalink
Merge pull request #103 from rjbs/nom
Browse files Browse the repository at this point in the history
make IO.seek's args match S32
  • Loading branch information
jnthn committed Mar 13, 2013
2 parents 927d7f4 + 0d261a3 commit cee2f91
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/IO.pm
Expand Up @@ -157,7 +157,7 @@ class IO does IO::FileTestable {
# 0 -- seek from beginning of file
# 1 -- seek relative to current position
# 2 -- seek from the end of the file
method seek(IO:D: Int:D $whence, Int:D $offset) {
method seek(IO:D: Int:D $offset, Int:D $whence) {
$!PIO.seek(nqp::unbox_i($whence), nqp::unbox_i($offset));
True;
}
Expand Down

0 comments on commit cee2f91

Please sign in to comment.