Skip to content

Commit

Permalink
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -449,7 +449,8 @@ public IOSeekPrimitiveNode(RubyContext context, SourceSection sourceSection) {
@Specialization
public int seek(VirtualFrame frame, DynamicObject io, int amount, int whence) {
final int fd = Layouts.IO.getDescriptor(io);
return ensureSuccessful(posix().lseek(fd, amount, whence));
// TODO (pitr-ch 15-Apr-2016): should it have ensureSuccessful too?
return posix().lseek(fd, amount, whence);
}

}

0 comments on commit 07a9454

Please sign in to comment.