This repository was archived by the owner on Dec 2, 2025. It is now read-only.
Commit d4e0ea7
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.
The result is that the 4 first bits are always set to 0 in
LZ4Block*Stream.
This commit:
- fixes the Checksum view in StreamingXXHash32
- keeps the current behaviour in LZ4Block*Stream to avoid breaking
existing data built with this library1 parent a9c1b3a commit d4e0ea7
File tree
3 files changed
+3
-3
lines changed- src/java/net/jpountz
- lz4
- xxhash
3 files changed
+3
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
257 | 257 | | |
258 | 258 | | |
259 | 259 | | |
260 | | - | |
| 260 | + | |
261 | 261 | | |
262 | 262 | | |
263 | 263 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
206 | 206 | | |
207 | 207 | | |
208 | 208 | | |
209 | | - | |
| 209 | + | |
210 | 210 | | |
211 | 211 | | |
212 | 212 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
103 | 103 | | |
104 | 104 | | |
105 | 105 | | |
106 | | - | |
| 106 | + | |
107 | 107 | | |
108 | 108 | | |
109 | 109 | | |
| |||
0 commit comments