summaryrefslogtreecommitdiff
path: root/pack.c
diff options
context:
space:
mode:
Diffstat (limited to 'pack.c')
-rw-r--r--pack.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pack.c b/pack.c
index 67ee20d574..b5545f7112 100644
--- a/pack.c
+++ b/pack.c
@@ -1018,7 +1018,7 @@ pack_pack(VALUE ary, VALUE fmt)
from = NEXTFROM;
from = rb_to_int(from);
- numbytes = rb_absint_size_in_word(from, 7, NULL);
+ numbytes = rb_absint_numwords(from, 7, NULL);
if (numbytes == 0)
numbytes = 1;
buf = rb_str_new(NULL, numbytes);