From fbef2d92e5f21c84c873cd88e0812a085ef67f0d Mon Sep 17 00:00:00 2001 From: matz Date: Wed, 23 Jun 2004 09:28:28 +0000 Subject: * 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 --- ext/zlib/zlib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- cgit