On 10/05/2016 10:56 AM, Piotr Caban wrote:
<snip> Please change name of fnvPrime variable to something like fnv_prime. Also you will need to initialize it using #ifdef, something like this should work: #ifdef _WIN64 MSVCRT_size_t hash = ... #else MSVCRT_size_t hash = ... #endif <snip>
Done.
You used both #ifdef _WIN64 and if(sizeof(void*) == sizeof(int)) in the test but now I see the difference. I just sent another version.
Thanks for the feedback!