diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-06-06 22:31:23 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-06-06 22:31:23 +0000 |
commit | d1f3d41f11a5b0d47a85182a4c55e39def0f08f4 (patch) | |
tree | 124b7e03f7c08b846b0f06a0a1c237e079c431d7 /ext/-test- | |
parent | 7ba52b04a4a2024488b2ba4201421805d714334c (diff) |
* internal.h (rb_int_export): countp argument is split into
wordcount_allocated and wordcount.
* bignum.c (rb_int_export): Follow the above change.
* pack.c (pack_pack): Ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41117 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/-test-')
-rw-r--r-- | ext/-test-/bignum/export.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/-test-/bignum/export.c b/ext/-test-/bignum/export.c index 4483452777..33cc2d0a42 100644 --- a/ext/-test-/bignum/export.c +++ b/ext/-test-/bignum/export.c @@ -5,7 +5,7 @@ static VALUE rb_int_export_m(VALUE val, VALUE buf, VALUE wordorder, VALUE wordsize_arg, VALUE endian, VALUE nails) { int sign; - size_t count; + size_t count = 0; void *ret; size_t wordsize = NUM2SIZE(wordsize_arg); @@ -16,7 +16,7 @@ rb_int_export_m(VALUE val, VALUE buf, VALUE wordorder, VALUE wordsize_arg, VALUE } ret = rb_int_export(val, - &sign, NIL_P(buf) ? NULL : RSTRING_PTR(buf), &count, + &sign, &count, NIL_P(buf) ? NULL : RSTRING_PTR(buf), count, NUM2INT(wordorder), wordsize, NUM2INT(endian), NUM2INT(nails)); return rb_ary_new_from_args(3, INT2NUM(sign), ret ? rb_str_new(ret, wordsize * count) : Qnil, SIZE2NUM(count)); |