diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-10-23 05:09:34 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-10-23 05:09:34 +0000 |
commit | 92023a8f60a6c75428ce595e2e2680f377714396 (patch) | |
tree | 411ab11c5802940163ccddbbfa218a276b1dd5fb /io.c | |
parent | c0f40369b6f75f1d6f14b3eb1beacf2fac6e7263 (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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |