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

ruby-changes:29941

From: glass <ko1@a...>
Date: Tue, 16 Jul 2013 11:26:06 +0900 (JST)
Subject: [ruby-changes:29941] glass:r41993 (trunk): * io.c (appendline): cosmetic change

glass	2013-07-16 11:25:54 +0900 (Tue, 16 Jul 2013)

  New Revision: 41993

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=41993

  Log:
    * io.c (appendline): cosmetic change

  Modified files:
    trunk/io.c

Index: io.c
===================================================================
--- io.c	(revision 41992)
+++ io.c	(revision 41993)
@@ -2759,8 +2759,8 @@ appendline(rb_io_t *fptr, int delim, VAL https://github.com/ruby/ruby/blob/trunk/io.c#L2759
         make_readconv(fptr, 0);
         do {
             const char *p, *e;
-            int searchlen;
-            if (searchlen = READ_CHAR_PENDING_COUNT(fptr)) {
+            int searchlen = READ_CHAR_PENDING_COUNT(fptr);
+            if (searchlen) {
                 p = READ_CHAR_PENDING_PTR(fptr);
                 if (0 < limit && limit < searchlen)
                     searchlen = (int)limit;

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

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