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 | df84c64be98e362068524a2bbe7db6bcefe2ca7c (patch) | |
tree | 3f00ce8d537dd56ea457500043c7352613604788 /pack.c | |
parent | 66d03898953b6245eefdfccd41ac6aca6bfe9495 (diff) | |
download | ruby-df84c64be98e362068524a2bbe7db6bcefe2ca7c.tar.gz |
* pack.c (pack_pack): use NUM2INT() instead of num2i32().
git-svn-id: svn+ssh://ci.ruby-lang.org/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"); } |