From 3495f2b87ac5be47433a34c08e2efd9732edb3a1 Mon Sep 17 00:00:00 2001 From: glass Date: Tue, 16 Jul 2013 02:25:54 +0000 Subject: [PATCH] * io.c (appendline): cosmetic change git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41993 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- io.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/io.c b/io.c index 3cb39d9c9e..603860919d 100644 --- a/io.c +++ b/io.c @@ -2759,8 +2759,8 @@ appendline(rb_io_t *fptr, int delim, VALUE *strp, long *lp) 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;