Permalink
Browse files

make IO.seek's args match S32

  • Loading branch information...
1 parent 5101a54 commit 0d261a3afb7963dad903a29aa0dcac3878eb0695 @rjbs rjbs committed Feb 19, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/core/IO.pm
View
@@ -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 0d261a3

Please sign in to comment.