Skip to content

Commit e1ead85

Browse files
committed
Mask checksums to lower 32bits on also IL32 platforms
1 parent 29dd081 commit e1ead85

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/zlib/zlib.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,7 @@ checksum_long(uLong (*func)(uLong, const Bytef*, uInt), uLong sum, const Bytef *
395395
return sum;
396396
}
397397
#else
398-
#define checksum_long(func, sum, ptr, len) (func)((sum), (ptr), (len))
398+
#define checksum_long(func, sum, ptr, len) (func)(mask32(sum), (ptr), (len))
399399
#endif
400400

401401
static VALUE

0 commit comments

Comments
 (0)