diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-04-10 13:03:45 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-04-10 13:03:45 +0400 |
commit | e03ebf7a41335acd02809bf617410a902d0fe0a6 (patch) | |
tree | 4426f839056c2577f33a222ea86c865e942cfc2f /source/blender/makesrna | |
parent | c4ce26c9061c2fcb231fe0570251c3b02d0caa5f (diff) |
code cleanup: replace (val >> 16) with macro RNA_SUBTYPE_UNIT_VALUE(val)
Diffstat (limited to 'source/blender/makesrna')
-rw-r--r-- | source/blender/makesrna/RNA_types.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/makesrna/RNA_types.h b/source/blender/makesrna/RNA_types.h index 91f4b4fef7b..e826b81d617 100644 --- a/source/blender/makesrna/RNA_types.h +++ b/source/blender/makesrna/RNA_types.h @@ -91,9 +91,9 @@ typedef enum PropertyUnit { PROP_UNIT_ACCELERATION = (8<<16) /* m/(s^2) */ } PropertyUnit; -#define RNA_SUBTYPE_UNIT(subtype) ((subtype) & 0x00FF0000) -#define RNA_SUBTYPE_VALUE(subtype) ((subtype) & ~0x00FF0000) -#define RNA_SUBTYPE_UNIT_VALUE(subtype) ((subtype)>>16) +#define RNA_SUBTYPE_UNIT(subtype) ((subtype) & 0x00FF0000) +#define RNA_SUBTYPE_VALUE(subtype) ((subtype) & ~0x00FF0000) +#define RNA_SUBTYPE_UNIT_VALUE(subtype) ((subtype) >> 16) #define RNA_ENUM_BITFLAG_SIZE 32 |