mirror of https://github.com/bjornbytes/lovr.git
Minor fix to let header files compile in C++
This commit is contained in:
parent
ec2c8e01ee
commit
ff1ae2c050
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue