diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-06-23 09:19:14 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-06-23 09:19:14 +0000 |
commit | 5199bf7529853c496f300502f42ae87904afdf7e (patch) | |
tree | 53f91d50ec13e3e02b53defa5606d9627212575f /ext | |
parent | 77574f0fa2ce5cbc1558cec1ac4368cedbe8ec6a (diff) | |
download | ruby-5199bf7529853c496f300502f42ae87904afdf7e.tar.gz |
* 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')
-rw-r--r-- | ext/zlib/zlib.c | 2 |
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; } |