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
This commit is contained in:
parent
c0f40369b6
commit
92023a8f60
2
io.c
2
io.c
@ -1651,7 +1651,7 @@ io_writev(int argc, VALUE *argv, VALUE io)
|
|||||||
n = io_fwrite(argv[i], fptr, (i < argc-1));
|
n = io_fwrite(argv[i], fptr, (i < argc-1));
|
||||||
#endif
|
#endif
|
||||||
if (n == -1L) rb_sys_fail_path(fptr->pathv);
|
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;
|
return total;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user