[macruby-changes] [3891] MacRuby/trunk/io.c
source_changes at macosforge.org
source_changes at macosforge.org
Mon Mar 29 16:35:52 PDT 2010
Revision: 3891
http://trac.macosforge.org/projects/ruby/changeset/3891
Author: martinlagardette at apple.com
Date: 2010-03-29 16:35:51 -0700 (Mon, 29 Mar 2010)
Log Message:
-----------
IO#tell should not require readability
IO#tell should be usable on write-only and read-only IO, not just read-able IO
Modified Paths:
--------------
MacRuby/trunk/io.c
Modified: MacRuby/trunk/io.c
===================================================================
--- MacRuby/trunk/io.c 2010-03-29 22:41:07 UTC (rev 3890)
+++ MacRuby/trunk/io.c 2010-03-29 23:35:51 UTC (rev 3891)
@@ -549,9 +549,9 @@
rb_io_tell(VALUE io, SEL sel)
{
rb_io_t *io_struct = ExtractIOStruct(io);
- rb_io_assert_readable(io_struct);
+ rb_io_check_closed(io_struct);
- return OFFT2NUM(ltell(io_struct->read_fd));
+ return OFFT2NUM(ltell(io_struct->fd));
}
static VALUE
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20100329/58a8a21d/attachment.html>
More information about the macruby-changes
mailing list