1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* 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
This commit is contained in:
matz 2004-06-23 09:19:14 +00:00
parent 77574f0fa2
commit 5199bf7529

View file

@ -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;
}