Browse files

Merge pull request #103 from rjbs/nom

make IO.seek's args match S32
  • Loading branch information...
2 parents 927d7f4 + 0d261a3 commit cee2f91f5f9a8d897c8b191ef2ef9a071ee1f783 @jnthn jnthn committed Mar 13, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/core/IO.pm
View
2 src/core/IO.pm
@@ -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;
}

0 comments on commit cee2f91

Please sign in to comment.