Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

make IO.seek's args match S32 #103

Merged
merged 1 commit into from

2 participants

@rjbs

I was confused by my very simple $fh.seek(…) failing until I look at the IO.pm code and saw that its expected args to seek are the reverse of those in S32. This corrects them.

@jnthn jnthn merged commit cee2f91 into from
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Feb 19, 2013
  1. @rjbs

    make IO.seek's args match S32

    rjbs authored
This page is out of date. Refresh to see the latest.
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;
}
Something went wrong with that request. Please try again.