Minor fix to let header files compile in C++

This commit is contained in:
mcc 2019-12-17 20:02:33 -05:00
parent ec2c8e01ee
commit ff1ae2c050
1 changed files with 1 additions and 1 deletions

View File

@ -3,7 +3,7 @@
// FNV1a
static LOVR_INLINE uint64_t hash64(const void* data, size_t length) {
const uint8_t* bytes = data;
const uint8_t* bytes = (uint8_t *)data;
uint64_t hash = 0xcbf29ce484222325;
for (size_t i = 0; i < length; i++) {
hash = (hash ^ bytes[i]) * 0x100000001b3;