summaryrefslogtreecommitdiff
path: root/Source/Core/Common/Hash.cpp
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2015-08-29 03:12:18 -0400
committerLioncash <mathew1800@gmail.com>2015-08-29 03:12:18 -0400
commit072150589e7fdb84269da54a232a3258c7615b73 (patch)
treed04ac735e4ef091710b58f3b88bca06bb2f5d33b /Source/Core/Common/Hash.cpp
parente7c7dcaa1f557fa8d206ea2d2605cac7489fd069 (diff)
parent310bb46967637f27f7f3d7ab6152c2c0410ba444 (diff)
Merge pull request #2924 from lioncash/scope
Hash: Narrow define scope
Diffstat (limited to 'Source/Core/Common/Hash.cpp')
-rw-r--r--Source/Core/Common/Hash.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Core/Common/Hash.cpp b/Source/Core/Common/Hash.cpp
index 868de4e68f..2fe9862c6b 100644
--- a/Source/Core/Common/Hash.cpp
+++ b/Source/Core/Common/Hash.cpp
@@ -43,10 +43,10 @@ u32 HashFletcher(const u8* data_u8, size_t length)
// Implementation from Wikipedia
// Slightly slower than Fletcher above, but slightly more reliable.
-#define MOD_ADLER 65521
// data: Pointer to the data to be summed; len is in bytes
u32 HashAdler32(const u8* data, size_t len)
{
+ static const u32 MOD_ADLER = 65521;
u32 a = 1, b = 0;
while (len)