diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2022-04-02 19:07:45 +0900 |
---|---|---|
committer | git <svn-admin@ruby-lang.org> | 2022-04-02 19:23:59 +0900 |
commit | 4ee71097a0557d01e5689c5edf52e508c6978571 (patch) | |
tree | a0820a7ded09beb16678ab00201febf1cd943e30 | |
parent | 1cbdedec895070df1df96d05370cf8da084ab6fa (diff) |
[ruby/zlib] Mask checksums to lower 32bits on also IL32 platforms
https://github.com/ruby/zlib/commit/e1ead85113
-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 168b3d0a0a..70f422a124 100644 --- a/ext/zlib/zlib.c +++ b/ext/zlib/zlib.c @@ -395,7 +395,7 @@ checksum_long(uLong (*func)(uLong, const Bytef*, uInt), uLong sum, const Bytef * return sum; } #else -#define checksum_long(func, sum, ptr, len) (func)((sum), (ptr), (len)) +#define checksum_long(func, sum, ptr, len) (func)(mask32(sum), (ptr), (len)) #endif static VALUE |