diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-08-25 00:16:14 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-08-25 00:16:14 +0400 |
commit | 7c65015ab84360f7e029a5495324a595fec3eee1 (patch) | |
tree | b86b89fa96db1d0cc1adfddadc40834ce2553e10 /source/blender/blenlib/intern/BLI_ghash.c | |
parent | 4ece67578188d28e6e922434156440fa6b32a63e (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/BLI_ghash.c')
-rw-r--r-- | source/blender/blenlib/intern/BLI_ghash.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/blenlib/intern/BLI_ghash.c b/source/blender/blenlib/intern/BLI_ghash.c index edb29fa6d3e..1ae3ac18f24 100644 --- a/source/blender/blenlib/intern/BLI_ghash.c +++ b/source/blender/blenlib/intern/BLI_ghash.c @@ -77,7 +77,7 @@ struct GHash { struct BLI_mempool *entrypool; unsigned int nbuckets; unsigned int nentries; - unsigned short cursize, flag; + unsigned int cursize, flag; }; @@ -343,14 +343,14 @@ void BLI_ghash_free(GHash *gh, GHashKeyFreeFP keyfreefp, GHashValFreeFP valfreef MEM_freeN(gh); } -void BLI_ghash_flag_set(GHash *gh, unsigned short flag) +void BLI_ghash_flag_set(GHash *gh, unsigned int flag) { gh->flag |= flag; } -void BLI_ghash_flag_clear(GHash *gh, unsigned short flag) +void BLI_ghash_flag_clear(GHash *gh, unsigned int flag) { - gh->flag &= (unsigned short)~flag; + gh->flag &= ~flag; } |