diff options
| author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-06-23 09:28:28 +0000 |
|---|---|---|
| committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-06-23 09:28:28 +0000 |
| commit | fbef2d92e5f21c84c873cd88e0812a085ef67f0d (patch) | |
| tree | d6a02c703c3265ed5ad6cb701d69e38ff058efd2 | |
| parent | cdddfc7906342a014fc5db5a1f25219e45881ba4 (diff) | |
| download | ruby-fbef2d92e5f21c84c873cd88e0812a085ef67f0d.tar.gz ruby-fbef2d92e5f21c84c873cd88e0812a085ef67f0d.tar.xz ruby-fbef2d92e5f21c84c873cd88e0812a085ef67f0d.zip | |
* ext/zlib/zlib.c: 0xff should not be shifted by 24 bits on
64 bit platforms.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@6503 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
| -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 db2ba0d29..38ab667cd 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; } |
