summaryrefslogtreecommitdiff
path: root/pack.c
diff options
context:
space:
mode:
authormichal <michal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-05-28 18:11:07 +0000
committermichal <michal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-05-28 18:11:07 +0000
commitbab153b24385e3a27847707720837b4c749960ec (patch)
tree855451ed5ef9925d8a76511fdd099be6198358c9 /pack.c
parentff3d6d201d72eaa0f21dc376d59f4ba2a3acad92 (diff)
* array.c: fixed format string for 'long' args (%d -> %ld).
* class.c: ditto. * eval.c: ditto. * numeric.c: ditto. * pack.c: ditto. * parse.y: ditto. * range.c: ditto. * string.c: ditto. * util.c: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2498 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'pack.c')
-rw-r--r--pack.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/pack.c b/pack.c
index 60b44d4..f43b748 100644
--- a/pack.c
+++ b/pack.c
@@ -338,7 +338,7 @@ pack_pack(ary, fmt)
char *p, *pend;
VALUE res, from, associates = 0;
char type;
- int items, len, idx;
+ long items, len, idx;
char *ptr;
int plen;
#ifdef NATINT_PACK
@@ -825,7 +825,7 @@ pack_pack(ary, fmt)
if (!NIL_P(from)) {
StringValue(from);
if (RSTRING(from)->len < len) {
- rb_raise(rb_eArgError, "too short buffer for P(%d for %d)",
+ rb_raise(rb_eArgError, "too short buffer for P(%ld for %ld)",
RSTRING(from)->len, len);
}
}