summaryrefslogtreecommitdiff
path: root/ext/zlib/zlib.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-06-23 09:19:14 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-06-23 09:19:14 +0000
commit5199bf7529853c496f300502f42ae87904afdf7e (patch)
tree53f91d50ec13e3e02b53defa5606d9627212575f /ext/zlib/zlib.c
parent77574f0fa2ce5cbc1558cec1ac4368cedbe8ec6a (diff)
* ext/zlib/zlib.c: 0xff should not shift 24 bits on 64 bit
platforms. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6502 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/zlib/zlib.c')
-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 b5bd429910..e665b7b6b2 100644
--- a/ext/zlib/zlib.c
+++ b/ext/zlib/zlib.c
@@ -1853,7 +1853,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;
}