Update the existing PVS false-positives for xxHash v0.7.3
This commit is contained in:
parent
355b6faba7
commit
27538eeb2e
2 changed files with 8 additions and 4 deletions
|
@ -150,6 +150,10 @@ Uint64 calculate_stream_hash(struct SDL_RWops* const context) {
|
|||
// have the same trailing 32KB of content. The different seeds will produce
|
||||
// unique hashes.
|
||||
XXH64_state_t* const state = XXH64_createState();
|
||||
if(!state) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
const uint64_t seed = static_cast<uint64_t>(stream_size);
|
||||
XXH64_reset(state, seed);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue