diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-06-07 12:41:02 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-06-07 12:41:02 +0000 |
commit | a08b001100734a3db4efbe9d38d3226950a538e0 (patch) | |
tree | 365b7af5aaa31ce9415c7df99f23854a3ab85314 /pack.c | |
parent | 07b72b8c856353096fad39a7f628e9076533dc18 (diff) |
* bignum.c (rb_integer_pack): Renamed from rb_int_export.
(rb_integer_unpack): Renamed from rb_int_import.
* internal.h, pack.c: Follow the above change.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41147 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'pack.c')
-rw-r--r-- | pack.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1023,7 +1023,7 @@ pack_pack(VALUE ary, VALUE fmt) numbytes = 1; buf = rb_str_new(NULL, numbytes); - rb_int_export(from, &sign, NULL, RSTRING_PTR(buf), RSTRING_LEN(buf), 1, 1, 1, 1); + rb_integer_pack(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"); @@ -2142,7 +2142,7 @@ pack_unpack(VALUE str, VALUE fmt) } else { s++; - UNPACK_PUSH(rb_int_import(1, s0, s-s0, 1, 1, 1, 1)); + UNPACK_PUSH(rb_integer_unpack(1, s0, s-s0, 1, 1, 1, 1)); len--; s0 = s; } |