diff options
author | Bastien Montagne <montagne29@wanadoo.fr> | 2015-03-22 23:13:43 +0300 |
---|---|---|
committer | Bastien Montagne <montagne29@wanadoo.fr> | 2015-03-22 23:14:39 +0300 |
commit | 572489ec8936be0dfa1137f497d295e21f9ce693 (patch) | |
tree | afc62afb4ee30333ecf65d1ab5df3acff90734dd /source/blender/blenlib | |
parent | 059d5bc80988320dca9cc2797d7bddc75ba0b82f (diff) |
Fix wrong sizeof() in new ghash hashing helpers code.
Spotted by Coverity.
Diffstat (limited to 'source/blender/blenlib')
-rw-r--r-- | source/blender/blenlib/intern/BLI_ghash.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenlib/intern/BLI_ghash.c b/source/blender/blenlib/intern/BLI_ghash.c index 49d3cecafed..cd86bb831f4 100644 --- a/source/blender/blenlib/intern/BLI_ghash.c +++ b/source/blender/blenlib/intern/BLI_ghash.c @@ -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) |