summaryrefslogtreecommitdiff
path: root/io.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-10-23 05:09:34 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-10-23 05:09:34 +0000
commit92023a8f60a6c75428ce595e2e2680f377714396 (patch)
tree411ab11c5802940163ccddbbfa218a276b1dd5fb /io.c
parentc0f40369b6f75f1d6f14b3eb1beacf2fac6e7263 (diff)
io.c: fix total
* io.c (io_writev): total may be a bignum. [Feature #9323] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60371 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'io.c')
-rw-r--r--io.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/io.c b/io.c
index 6627bf7d27..703666ce62 100644
--- a/io.c
+++ b/io.c
@@ -1651,7 +1651,7 @@ io_writev(int argc, VALUE *argv, VALUE io)
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;