diff options
author | Campbell Barton <ideasman42@gmail.com> | 2014-06-18 08:00:58 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2014-06-18 08:02:41 +0400 |
commit | a82d3f85c689056681ba608624e8326c09415293 (patch) | |
tree | 8ea0d6cb9d7ecbaa6f7a8fa158f886c1a895914a /source/blender/blenlib/BLI_ghash.h | |
parent | 3a101d8c92730d7b98732710e41aafd940a31aff (diff) |
Correct casts for IS_EQ and other macro tweaks
- ensure GET_INT_FROM_POINTER us only used to get values
- rename STACK_POP_ELSE -> STACK_POP_DEFAULT
Diffstat (limited to 'source/blender/blenlib/BLI_ghash.h')
-rw-r--r-- | source/blender/blenlib/BLI_ghash.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenlib/BLI_ghash.h b/source/blender/blenlib/BLI_ghash.h index 947386dc934..a59023d4f9b 100644 --- a/source/blender/blenlib/BLI_ghash.h +++ b/source/blender/blenlib/BLI_ghash.h @@ -130,7 +130,7 @@ unsigned int BLI_ghashutil_strhash_p(const void *key); int BLI_ghashutil_strcmp(const void *a, const void *b); #define BLI_ghashutil_inthash(key) ( \ - CHECK_TYPE_INLINE(key, int), \ + CHECK_TYPE_INLINE(&(key), int *), \ BLI_ghashutil_uinthash((unsigned int)key)) unsigned int BLI_ghashutil_uinthash(unsigned int key); #define BLI_ghashutil_inthash_v4(key) ( \ |