summaryrefslogtreecommitdiff
path: root/pack.c
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-06-06 22:31:23 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-06-06 22:31:23 +0000
commitd1f3d41f11a5b0d47a85182a4c55e39def0f08f4 (patch)
tree124b7e03f7c08b846b0f06a0a1c237e079c431d7 /pack.c
parent7ba52b04a4a2024488b2ba4201421805d714334c (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.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/pack.c b/pack.c
index d77ed999b4..f4c907cc2e 100644
--- a/pack.c
+++ b/pack.c
@@ -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");