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:
authorCampbell Barton <ideasman42@gmail.com>2015-03-23 14:51:12 +0300
committerCampbell Barton <ideasman42@gmail.com>2015-03-23 14:52:33 +0300
commitb8a6cd0140cae6d4da1d17577f60dc7b854fdff1 (patch)
tree0791fbe37027c9545870d624540dc422c9c05ca5 /source/blender/blenlib/intern/BLI_ghash.c
parentc48ebb44ae15b1238a6d86e98fee6cd1ff0cba73 (diff)
Cleanup: comments, style
Diffstat (limited to 'source/blender/blenlib/intern/BLI_ghash.c')
-rw-r--r--source/blender/blenlib/intern/BLI_ghash.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/blenlib/intern/BLI_ghash.c b/source/blender/blenlib/intern/BLI_ghash.c
index cd86bb831f4..f2705c79574 100644
--- a/source/blender/blenlib/intern/BLI_ghash.c
+++ b/source/blender/blenlib/intern/BLI_ghash.c
@@ -298,14 +298,14 @@ static void ghash_buckets_contract(
#ifdef GHASH_USE_MODULO_BUCKETS
while ((nentries < gh->limit_shrink) &&
- (gh->cursize > gh->size_min))
+ (gh->cursize > gh->size_min))
{
new_nbuckets = hashsizes[--gh->cursize];
gh->limit_shrink = GHASH_LIMIT_SHRINK(new_nbuckets);
}
#else
while ((nentries < gh->limit_shrink) &&
- (gh->bucket_bit > gh->bucket_bit_min))
+ (gh->bucket_bit > gh->bucket_bit_min))
{
new_nbuckets = 1u << --gh->bucket_bit;
gh->limit_shrink = GHASH_LIMIT_SHRINK(new_nbuckets);
@@ -525,7 +525,7 @@ static Entry *ghash_remove_ex(
Entry *e_prev;
Entry *e = ghash_lookup_entry_prev_ex(gh, key, &e_prev, bucket_index);
- BLI_assert(!valfreefp|| !(gh->flag & GHASH_FLAG_IS_GSET));
+ BLI_assert(!valfreefp || !(gh->flag & GHASH_FLAG_IS_GSET));
if (e) {
if (keyfreefp) keyfreefp(e->key);