Fix wrong sizeof() in new ghash hashing helpers code.

Spotted by Coverity.
This commit is contained in:
Bastien Montagne 2015-03-22 21:13:43 +01:00
parent 059d5bc809
commit 572489ec89
1 changed files with 1 additions and 1 deletions

View File

@ -1004,7 +1004,7 @@ unsigned int BLI_ghashutil_uinthash_v4(const unsigned int key[4])
}
unsigned int BLI_ghashutil_uinthash_v4_murmur(const unsigned int key[4])
{
return BLI_hash_mm2((const unsigned char *)key, sizeof(key), 0);
return BLI_hash_mm2((const unsigned char *)key, sizeof(int) * 4 /* sizeof(key) */, 0);
}
bool BLI_ghashutil_uinthash_v4_cmp(const void *a, const void *b)