summaryrefslogtreecommitdiffstats
path: root/pack.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-04-07 06:30:15 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-04-07 06:30:15 +0000
commitf5aa229bd6d708735a727013e2af633ec1d133ad (patch)
tree3f00ce8d537dd56ea457500043c7352613604788 /pack.c
parent786fa512511e7036d7f21f5d921aceb4bae6426c (diff)
downloadruby-f5aa229bd6d708735a727013e2af633ec1d133ad.tar.gz
ruby-f5aa229bd6d708735a727013e2af633ec1d133ad.tar.xz
ruby-f5aa229bd6d708735a727013e2af633ec1d133ad.zip
* pack.c (pack_pack): use NUM2INT() instead of num2i32().
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@6120 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
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 e90c0141c..1fd19c639 100644
--- a/pack.c
+++ b/pack.c
@@ -867,7 +867,7 @@ pack_pack(ary, fmt)
from = NEXTFROM;
from = rb_to_int(from);
- l = num2i32(from);
+ l = NUM2INT(from);
if (l < 0) {
rb_raise(rb_eRangeError, "pack(U): value out of range");
}