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 /pack.c | |
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 'pack.c')
-rw-r--r-- | pack.c | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -1014,7 +1014,6 @@ pack_pack(VALUE ary, VALUE fmt) VALUE buf = rb_str_new(0, 0); size_t numbytes; int sign; - size_t count; char *cp; from = NEXTFROM; @@ -1024,8 +1023,7 @@ pack_pack(VALUE ary, VALUE fmt) numbytes = 1; buf = rb_str_new(NULL, numbytes); - count = RSTRING_LEN(buf); - rb_int_export(from, &sign, RSTRING_PTR(buf), &count, 1, 1, 1, 1); + rb_int_export(from, &sign, NULL, RSTRING_PTR(buf), RSTRING_LEN(buf), 1, 1, 1, 1); if (sign < 0) rb_raise(rb_eArgError, "can't compress negative numbers"); |