diff options
author | Campbell Barton <ideasman42@gmail.com> | 2016-05-31 17:19:01 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2016-05-31 17:19:01 +0300 |
commit | 3df30c1a6e49e78ba062cc638b2c14fdd0de1799 (patch) | |
tree | cdedff2b16521387ff26faffc99dbefe482eb22a /source/blender/blenkernel/intern/image.c | |
parent | a0e91ef04090790dcd683d86d3cadb9aff0062e7 (diff) |
Cleanup: parenthesize defines
Diffstat (limited to 'source/blender/blenkernel/intern/image.c')
-rw-r--r-- | source/blender/blenkernel/intern/image.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/blenkernel/intern/image.c b/source/blender/blenkernel/intern/image.c index 1ae7ca189fb..0b2c844cb2c 100644 --- a/source/blender/blenkernel/intern/image.c +++ b/source/blender/blenkernel/intern/image.c @@ -109,8 +109,8 @@ static void image_add_view(Image *ima, const char *viewname, const char *filepat #define IMA_NO_INDEX 0x7FEFEFEF /* quick lookup: supports 1 million frames, thousand passes */ -#define IMA_MAKE_INDEX(frame, index) ((frame) << 10) + index -#define IMA_INDEX_FRAME(index) (index >> 10) +#define IMA_MAKE_INDEX(frame, index) (((frame) << 10) + (index)) +#define IMA_INDEX_FRAME(index) ((index) >> 10) /* #define IMA_INDEX_PASS(index) (index & ~1023) */ |