summaryrefslogtreecommitdiff
path: root/pack.c
diff options
context:
space:
mode:
authormichal <michal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-08-21 15:47:54 +0000
committermichal <michal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-08-21 15:47:54 +0000
commitffc13a6525c7c72cbb858380e6870106bf5a7dfa (patch)
tree3b51176716a877c59eebbe6e82533d2cae3d7bc5 /pack.c
parent022d1f123c6149915970b4cac9664f66d8d5875c (diff)
downloadbundler-ffc13a6525c7c72cbb858380e6870106bf5a7dfa.tar.gz
*.c: Int vs Long cleanup
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2734 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'pack.c')
-rw-r--r--pack.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/pack.c b/pack.c
index f1d9fd1863..7316c1dc7c 100644
--- a/pack.c
+++ b/pack.c
@@ -338,9 +338,8 @@ pack_pack(ary, fmt)
char *p, *pend;
VALUE res, from, associates = 0;
char type;
- long items, len, idx;
+ long items, len, idx, plen;
char *ptr;
- int plen;
#ifdef NATINT_PACK
int natint; /* native integer */
#endif
@@ -1074,7 +1073,8 @@ pack_unpack(str, fmt)
char *p, *pend;
VALUE ary;
char type;
- int len, tmp, star;
+ long len;
+ int tmp, star;
#ifdef NATINT_PACK
int natint; /* native integer */
#endif
@@ -1493,7 +1493,7 @@ pack_unpack(str, fmt)
{
VALUE buf = infected_str_new(0, (send - s)*3/4, str);
char *ptr = RSTRING(buf)->ptr;
- int total = 0;
+ long total = 0;
while (s < send && *s > ' ' && *s < 'a') {
long a,b,c,d;