diff options
author | Martin Storsjö <martin@martin.st> | 2021-02-08 15:41:52 +0300 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2021-02-08 16:31:40 +0300 |
commit | 958846150a1a20c40781b1454bb314fde3c55630 (patch) | |
tree | 9c1d847ec441963d57df73c5277e56dd935b466f /tools | |
parent | 0a577fd2d91e80362de9cadec60f7c18022902d3 (diff) |
xxhash: Add a cast to silence a warning when built with MSVC
This silences the following warning:
tools/output/xxhash.c(127): warning C4244: '=': conversion from 'unsigned long' to 'unsigned char', possible loss of data
Diffstat (limited to 'tools')
-rw-r--r-- | tools/output/xxhash.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/output/xxhash.c b/tools/output/xxhash.c index 7d38c09..53e7f2b 100644 --- a/tools/output/xxhash.c +++ b/tools/output/xxhash.c @@ -124,7 +124,7 @@ static int xxh3_verify(xxh3Context *const xxh3, const char * xxh3_str) { char *ignore; memcpy(t, xxh3_str, 2); xxh3_str += 2; - c.digest[i] = strtoul(t, &ignore, 16); + c.digest[i] = (unsigned char) strtoul(t, &ignore, 16); } XXH128_hash_t verify = XXH128_hashFromCanonical(&c); |