diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-10-07 13:48:59 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-10-07 13:48:59 +0400 |
commit | e8872a8ea259c856aab188cda8eb4502d6a02cfc (patch) | |
tree | 99dc2b334f6152367bce140e1ce8fd2e0f6e0ca4 /source/blender/blenlib/BLI_endian_switch_inline.h | |
parent | 7748133bf2d0a99f37b2a0b0ce438b6726db36fa (diff) |
style cleanup: if();
Diffstat (limited to 'source/blender/blenlib/BLI_endian_switch_inline.h')
-rw-r--r-- | source/blender/blenlib/BLI_endian_switch_inline.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/source/blender/blenlib/BLI_endian_switch_inline.h b/source/blender/blenlib/BLI_endian_switch_inline.h index 948d462fde4..6aa0405861e 100644 --- a/source/blender/blenlib/BLI_endian_switch_inline.h +++ b/source/blender/blenlib/BLI_endian_switch_inline.h @@ -74,12 +74,12 @@ BLI_INLINE void BLI_endian_switch_int64(int64_t *val) { int64_t tval = *val; *val = ((tval >> 56)) | - ((tval << 40) & 0x00ff000000000000) | - ((tval << 24) & 0x0000ff0000000000) | - ((tval << 8) & 0x000000ff00000000) | - ((tval >> 8) & 0x00000000ff000000) | - ((tval >> 24) & 0x0000000000ff0000) | - ((tval >> 40) & 0x000000000000ff00) | + ((tval << 40) & 0x00ff000000000000l) | + ((tval << 24) & 0x0000ff0000000000l) | + ((tval << 8) & 0x000000ff00000000l) | + ((tval >> 8) & 0x00000000ff000000l) | + ((tval >> 24) & 0x0000000000ff0000l) | + ((tval >> 40) & 0x000000000000ff00l) | ((tval << 56)); } BLI_INLINE void BLI_endian_switch_uint64(uint64_t *val) |