Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2012-10-14 08:11:34 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-10-14 08:11:34 +0400
commit68d68e13b65a38d37768114e2b43964f26f96983 (patch)
tree2c9b27b56dcc4329d0c5466cbfe2a35518097392 /source/blender/blenlib/BLI_endian_switch_inline.h
parent3867633728d9229710eaa1409ab8c642a3126967 (diff)
fix for error compiling on some platforms: use ll suffix for 64bit ints in BLI_endian_switch_int64()
Diffstat (limited to 'source/blender/blenlib/BLI_endian_switch_inline.h')
-rw-r--r--source/blender/blenlib/BLI_endian_switch_inline.h12
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 6aa0405861e..4bc6d3828b9 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) & 0x00ff000000000000l) |
- ((tval << 24) & 0x0000ff0000000000l) |
- ((tval << 8) & 0x000000ff00000000l) |
- ((tval >> 8) & 0x00000000ff000000l) |
- ((tval >> 24) & 0x0000000000ff0000l) |
- ((tval >> 40) & 0x000000000000ff00l) |
+ ((tval << 40) & 0x00ff000000000000ll) |
+ ((tval << 24) & 0x0000ff0000000000ll) |
+ ((tval << 8) & 0x000000ff00000000ll) |
+ ((tval >> 8) & 0x00000000ff000000ll) |
+ ((tval >> 24) & 0x0000000000ff0000ll) |
+ ((tval >> 40) & 0x000000000000ff00ll) |
((tval << 56));
}
BLI_INLINE void BLI_endian_switch_uint64(uint64_t *val)