Const-qualify ComputeHash

Needed for an upcoming commit
This commit is contained in:
Silent 2021-03-16 23:55:45 +01:00
parent 6db6256e45
commit 609614f735
No known key found for this signature in database
GPG Key ID: AE53149BB0C45AF1
2 changed files with 2 additions and 2 deletions

View File

@ -27,7 +27,7 @@ void InitHasher()
}
}
uint64_t ComputeHash(void* data, size_t len)
uint64_t ComputeHash(const void* data, size_t len)
{
if (g_HashAlgorithm == HASH_NONE) {
InitHasher();

View File

@ -29,6 +29,6 @@
#include <stdint.h>
uint64_t ComputeHash(void* data, size_t len);
uint64_t ComputeHash(const void* data, size_t len);
#endif