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>2013-08-25 00:16:14 +0400
committerCampbell Barton <ideasman42@gmail.com>2013-08-25 00:16:14 +0400
commit7c65015ab84360f7e029a5495324a595fec3eee1 (patch)
treeb86b89fa96db1d0cc1adfddadc40834ce2553e10 /source/blender/blenlib/intern/edgehash.c
parent4ece67578188d28e6e922434156440fa6b32a63e (diff)
use ints for ghash/edgehash flags, since its allocated theres not much point to try save a few bytes here.
Diffstat (limited to 'source/blender/blenlib/intern/edgehash.c')
-rw-r--r--source/blender/blenlib/intern/edgehash.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/blenlib/intern/edgehash.c b/source/blender/blenlib/intern/edgehash.c
index 66c9eedaf1b..dac107187f3 100644
--- a/source/blender/blenlib/intern/edgehash.c
+++ b/source/blender/blenlib/intern/edgehash.c
@@ -75,7 +75,7 @@ struct EdgeHash {
EdgeEntry **buckets;
BLI_mempool *epool;
unsigned int nbuckets, nentries;
- unsigned short cursize, flag;
+ unsigned int cursize, flag;
};
@@ -295,14 +295,14 @@ void BLI_edgehash_free(EdgeHash *eh, EdgeHashFreeFP valfreefp)
}
-void BLI_edgehash_flag_set(EdgeHash *eh, unsigned short flag)
+void BLI_edgehash_flag_set(EdgeHash *eh, unsigned int flag)
{
eh->flag |= flag;
}
-void BLI_edgehash_flag_clear(EdgeHash *eh, unsigned short flag)
+void BLI_edgehash_flag_clear(EdgeHash *eh, unsigned int flag)
{
- eh->flag &= (unsigned short)~flag;
+ eh->flag &= ~flag;
}