Skip to content

Commit

Permalink
Use lseekLong to get lseek return value. Fixes #3817.
Browse files Browse the repository at this point in the history
  • Loading branch information
headius committed Sep 29, 2016
1 parent b429f5c commit d9090c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/main/java/org/jruby/util/io/PosixShim.java
Expand Up @@ -66,7 +66,7 @@ public long lseek(ChannelFD fd, long offset, int type) {
}
} else if (fd.chNative != null) {
// native channel, use native lseek
int ret = posix.lseek(fd.chNative.getFD(), offset, type);
long ret = posix.lseekLong(fd.chNative.getFD(), offset, type);
if (ret == -1) errno = Errno.valueOf(posix.errno());
return ret;
}
Expand Down

0 comments on commit d9090c3

Please sign in to comment.