summaryrefslogtreecommitdiff
path: root/ext/zlib
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-06-23 09:28:28 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-06-23 09:28:28 +0000
commita72f48f4d689a92705453a9a62fd07781288a3be (patch)
treed6a02c703c3265ed5ad6cb701d69e38ff058efd2 /ext/zlib
parent256be3c09c862ec0f52fbf36ec5fcebee6951163 (diff)
* ext/zlib/zlib.c: 0xff should not be shifted by 24 bits on
64 bit platforms. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6503 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/zlib')
-rw-r--r--ext/zlib/zlib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/zlib/zlib.c b/ext/zlib/zlib.c
index db2ba0d296..38ab667cd4 100644
--- a/ext/zlib/zlib.c
+++ b/ext/zlib/zlib.c
@@ -1850,7 +1850,7 @@ gzfile_get32(src)
n = *(src++) & 0xff;
n |= (*(src++) & 0xff) << 8;
n |= (*(src++) & 0xff) << 16;
- n |= (*(src++) & 0xff) << 24;
+ n |= (*(src++) & 0xffU) << 24;
return n;
}