diff options
| author | Tilka <tilkax@gmail.com> | 2020-08-01 15:26:27 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-08-01 15:26:27 +0100 |
| commit | dbacffd75d0608f0b22e709ac398282afa3ec848 (patch) | |
| tree | 5bb4803e8ffd5a756edd0c275507ae79c3ec891c /Source/Core/Common | |
| parent | 37827ef134735f91f921f44ae1d91bc55d453658 (diff) | |
| parent | 1ca3710bd210906d05b7ad512ba155e3a012e9b8 (diff) | |
Merge pull request #8731 from Pokechu22/dsp-lle-cpu-int-crash
Fix crash when using DSP LLE with CPU interpreter (or fastmem off)
Diffstat (limited to 'Source/Core/Common')
| -rw-r--r-- | Source/Core/Common/Hash.cpp | 2 | ||||
| -rw-r--r-- | Source/Core/Common/Hash.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/Source/Core/Common/Hash.cpp b/Source/Core/Common/Hash.cpp index 525f0b21e2..395865c475 100644 --- a/Source/Core/Common/Hash.cpp +++ b/Source/Core/Common/Hash.cpp @@ -95,7 +95,7 @@ u32 HashAdler32(const u8* data, size_t len) // Stupid hash - but can't go back now :) // Don't use for new things. At least it's reasonably fast. -u32 HashEctor(const u8* ptr, int length) +u32 HashEctor(const u8* ptr, size_t length) { u32 crc = 0; diff --git a/Source/Core/Common/Hash.h b/Source/Core/Common/Hash.h index 488f68cc1a..9d1af1847c 100644 --- a/Source/Core/Common/Hash.h +++ b/Source/Core/Common/Hash.h @@ -12,7 +12,7 @@ namespace Common { u32 HashFletcher(const u8* data_u8, size_t length); // FAST. Length & 1 == 0. u32 HashAdler32(const u8* data, size_t len); // Fairly accurate, slightly slower -u32 HashEctor(const u8* ptr, int length); // JUNK. DO NOT USE FOR NEW THINGS +u32 HashEctor(const u8* ptr, size_t length); // JUNK. DO NOT USE FOR NEW THINGS u64 GetHash64(const u8* src, u32 len, u32 samples); void SetHash64Function(); } // namespace Common |
