Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Montagne <montagne29@wanadoo.fr>2015-03-22 23:13:43 +0300
committerBastien Montagne <montagne29@wanadoo.fr>2015-03-22 23:14:39 +0300
commit572489ec8936be0dfa1137f497d295e21f9ce693 (patch)
treeafc62afb4ee30333ecf65d1ab5df3acff90734dd
parent059d5bc80988320dca9cc2797d7bddc75ba0b82f (diff)
Fix wrong sizeof() in new ghash hashing helpers code.
Spotted by Coverity.
-rw-r--r--source/blender/blenlib/intern/BLI_ghash.c2
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)