diff options
author | Kloen <kloen@outlawkiwi.com> | 2017-01-28 14:45:21 +0100 |
---|---|---|
committer | Kloen <kloen@outlawkiwi.com> | 2017-01-28 14:47:14 +0100 |
commit | 2fa0971cebb6728350dc8e9a8edd336d5dff4d99 (patch) | |
tree | cefa734708278386f68cfb5589c60c551cef6979 /src/common/hash.h | |
parent | 372db835f48fe6e9dbf1e5652469c0a8a7447f58 (diff) |
common: switch ComputeHash64 len param to size_t instead of int, fix warning on MSVC on dsp_dsp.cpp
Diffstat (limited to 'src/common/hash.h')
-rw-r--r-- | src/common/hash.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common/hash.h b/src/common/hash.h index a3850be68..188d1c555 100644 --- a/src/common/hash.h +++ b/src/common/hash.h @@ -8,7 +8,7 @@ namespace Common { -void MurmurHash3_128(const void* key, int len, u32 seed, void* out); +void MurmurHash3_128(const void* key, size_t len, u32 seed, void* out); /** * Computes a 64-bit hash over the specified block of data @@ -16,7 +16,7 @@ void MurmurHash3_128(const void* key, int len, u32 seed, void* out); * @param len Length of data (in bytes) to compute hash over * @returns 64-bit hash value that was computed over the data block */ -static inline u64 ComputeHash64(const void* data, int len) { +static inline u64 ComputeHash64(const void* data, size_t len) { u64 res[2]; MurmurHash3_128(data, len, 0, res); return res[0]; |