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

ruby-changes:48256

From: nobu <ko1@a...>
Date: Mon, 23 Oct 2017 14:09:39 +0900 (JST)
Subject: [ruby-changes:48256] nobu:r60371 (trunk): io.c: fix total

nobu	2017-10-23 14:09:34 +0900 (Mon, 23 Oct 2017)

  New Revision: 60371

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

  Log:
    io.c: fix total
    
    * io.c (io_writev): total may be a bignum.  [Feature #9323]

  Modified files:
    trunk/io.c
Index: io.c
===================================================================
--- io.c	(revision 60370)
+++ io.c	(revision 60371)
@@ -1651,7 +1651,7 @@ io_writev(int argc, VALUE *argv, VALUE i https://github.com/ruby/ruby/blob/trunk/io.c#L1651
 	n = io_fwrite(argv[i], fptr, (i < argc-1));
 #endif
 	if (n == -1L) rb_sys_fail_path(fptr->pathv);
-	total = rb_fix_plus_fix(LONG2FIX(n), total);
+	total = rb_fix_plus(LONG2FIX(n), total);
     }
 
     return total;

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

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