Skip to content

Commit 0c20de6

Browse files
committed
Fix the implementation of StreamingXXHash32.asChecksum()
In the Checksum view, we only keep the last 28 bits of the hash instead of the 32 bits of the full hash.
1 parent a9c1b3a commit 0c20de6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/java/net/jpountz/xxhash/StreamingXXHash32.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ public final Checksum asChecksum() {
103103

104104
@Override
105105
public long getValue() {
106-
return StreamingXXHash32.this.getValue() & 0xFFFFFFFL;
106+
return StreamingXXHash32.this.getValue() & 0xFFFFFFFFL;
107107
}
108108

109109
@Override

0 commit comments

Comments
 (0)