diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-04-07 06:30:15 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-04-07 06:30:15 +0000 |
commit | f5aa229bd6d708735a727013e2af633ec1d133ad (patch) | |
tree | 3f00ce8d537dd56ea457500043c7352613604788 /pack.c | |
parent | 786fa512511e7036d7f21f5d921aceb4bae6426c (diff) | |
download | ruby-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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"); } |