summaryrefslogtreecommitdiffstats
path: root/src/common/hash.h
diff options
context:
space:
mode:
authorKloen <kloen@outlawkiwi.com>2017-01-28 14:45:21 +0100
committerKloen <kloen@outlawkiwi.com>2017-01-28 14:47:14 +0100
commit2fa0971cebb6728350dc8e9a8edd336d5dff4d99 (patch)
treecefa734708278386f68cfb5589c60c551cef6979 /src/common/hash.h
parentMerge pull request #2478 from jfmherokiller/master (diff)
downloadyuzu-2fa0971cebb6728350dc8e9a8edd336d5dff4d99.tar
yuzu-2fa0971cebb6728350dc8e9a8edd336d5dff4d99.tar.gz
yuzu-2fa0971cebb6728350dc8e9a8edd336d5dff4d99.tar.bz2
yuzu-2fa0971cebb6728350dc8e9a8edd336d5dff4d99.tar.lz
yuzu-2fa0971cebb6728350dc8e9a8edd336d5dff4d99.tar.xz
yuzu-2fa0971cebb6728350dc8e9a8edd336d5dff4d99.tar.zst
yuzu-2fa0971cebb6728350dc8e9a8edd336d5dff4d99.zip
Diffstat (limited to '')
-rw-r--r--src/common/hash.h4
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];