[macruby-changes] [4792] MacRuby/trunk/io.c

source_changes at macosforge.org source_changes at macosforge.org
Wed Oct 13 00:58:57 PDT 2010


Revision: 4792
          http://trac.macosforge.org/projects/ruby/changeset/4792
Author:   watson1978 at gmail.com
Date:     2010-10-13 00:58:53 -0700 (Wed, 13 Oct 2010)
Log Message:
-----------
oops, I had mistake within r4790.

Revision Links:
--------------
    http://trac.macosforge.org/projects/ruby/changeset/4790

Modified Paths:
--------------
    MacRuby/trunk/io.c

Modified: MacRuby/trunk/io.c
===================================================================
--- MacRuby/trunk/io.c	2010-10-13 07:44:01 UTC (rev 4791)
+++ MacRuby/trunk/io.c	2010-10-13 07:58:53 UTC (rev 4792)
@@ -1157,7 +1157,7 @@
     // Resize the buffer to whatever was read
     rb_bstr_resize(buffer, r);
 
-    if (r == 0 && count > 0) {
+    if (r == 0 && to_read > 0) {
 	rb_eof_error();
     }
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20101013/d5933614/attachment.html>


More information about the macruby-changes mailing list