Revision: 51306
          
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=51306
Author:   campbellbarton
Date:     2012-10-14 04:11:34 +0000 (Sun, 14 Oct 2012)
Log Message:
-----------
fix for error compiling on some platforms: use ll suffix for 64bit ints in 
BLI_endian_switch_int64()

Modified Paths:
--------------
    trunk/blender/source/blender/blenlib/BLI_endian_switch_inline.h

Modified: trunk/blender/source/blender/blenlib/BLI_endian_switch_inline.h
===================================================================
--- trunk/blender/source/blender/blenlib/BLI_endian_switch_inline.h     
2012-10-14 03:56:47 UTC (rev 51305)
+++ trunk/blender/source/blender/blenlib/BLI_endian_switch_inline.h     
2012-10-14 04:11:34 UTC (rev 51306)
@@ -74,12 +74,12 @@
 {
        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)

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to