*/
const unsigned int m= 0x5bd1e995;
- const unsigned int seed= (0xdeadbeef * length);
+ const size_t seed= (0xdeadbeef * length);
const int r= 24;
// Initialize the hash to a 'random' value
- unsigned int h= seed ^ length;
+ size_t h= seed ^ length;
// Mix 4 bytes at a time into the hash
h *= m;
h ^= h >> 15;
- return h;
+ return (uint32_t) h;
}