[前][次][番号順一覧][スレッド一覧]

ruby-changes:45133

From: usa <ko1@a...>
Date: Tue, 27 Dec 2016 18:07:09 +0900 (JST)
Subject: [ruby-changes:45133] usa:r57206 (trunk): revert a part of r57199

usa	2016-12-27 18:07:02 +0900 (Tue, 27 Dec 2016)

  New Revision: 57206

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=57206

  Log:
    revert a part of r57199
    
    * io.c (io_fillbuf): revert a part of r57199 because it broke IO#getch.
      see also [Bug #13076]

  Modified files:
    trunk/io.c
Index: io.c
===================================================================
--- io.c	(revision 57205)
+++ io.c	(revision 57206)
@@ -1775,7 +1775,6 @@ io_fillbuf(rb_io_t *fptr) https://github.com/ruby/ruby/blob/trunk/io.c#L1775
 		rb_syserr_fail_path(e, path);
 	    }
         }
-	if (r > 0) READ_CHECK(fptr);
         fptr->rbuf.off = 0;
         fptr->rbuf.len = (int)r; /* r should be <= rbuf_capa */
         if (r == 0)

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]