Skip to content

Commit

Permalink
Mask checksums to lower 32bits on also IL32 platforms
Browse files Browse the repository at this point in the history
  • Loading branch information
nobu committed Apr 2, 2022
1 parent 29dd081 commit e1ead85
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ext/zlib/zlib.c
Expand Up @@ -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
Expand Down

0 comments on commit e1ead85

Please sign in to comment.