Cycles: Fix change of sign warning
authorMai Lavelle <mai.lavelle@gmail.com>
Thu, 11 Aug 2016 19:09:58 +0000 (15:09 -0400)
committerMai Lavelle <mai.lavelle@gmail.com>
Thu, 11 Aug 2016 19:09:58 +0000 (15:09 -0400)
intern/cycles/kernel/kernel_types.h

index a94d544b87316525cd8d1cc4ede7b3a8a7d8c439..bb26570455b191e5f1932714ad13d60dae55c519 100644 (file)
@@ -1266,7 +1266,7 @@ enum RayState {
 /* Patch map node flags */
 
 #define PATCH_MAP_NODE_IS_SET (1 << 30)
-#define PATCH_MAP_NODE_IS_LEAF (1 << 31)
+#define PATCH_MAP_NODE_IS_LEAF (1u << 31)
 #define PATCH_MAP_NODE_INDEX_MASK (~(PATCH_MAP_NODE_IS_SET | PATCH_MAP_NODE_IS_LEAF))
 
 CCL_NAMESPACE_END