[Bf-blender-cvs] [0cbd605a3d5] temp-benchmark: Silence strict compiler warning
Sergey Sharybin
noreply at git.blender.org
Tue Aug 7 17:53:43 CEST 2018
Commit: 0cbd605a3d5c37d964544e24c82bac9a62757b4b
Author: Sergey Sharybin
Date: Tue Aug 7 17:53:17 2018 +0200
Branches: temp-benchmark
https://developer.blender.org/rB0cbd605a3d5c37d964544e24c82bac9a62757b4b
Silence strict compiler warning
===================================================================
M source/blender/blenlib/BLI_hash.h
===================================================================
diff --git a/source/blender/blenlib/BLI_hash.h b/source/blender/blenlib/BLI_hash.h
index f74010479a9..858916ab350 100644
--- a/source/blender/blenlib/BLI_hash.h
+++ b/source/blender/blenlib/BLI_hash.h
@@ -75,9 +75,9 @@ BLI_INLINE void BLI_hash_pointer_to_color(const void *ptr, int *r, int *g, int *
const size_t hash_b = BLI_hash_int((uint)((val & 0xffff0000) >> 32));
const size_t hash =
hash_a ^ (hash_b + 0x9e3779b9 + (hash_a << 6) + (hash_a >> 2));
- *r = (hash & 0xff0000) >> 16;
- *g = (hash & 0x00ff00) >> 8;
- *b = hash & 0x0000ff;
+ *r = (int)((hash & 0xff0000) >> 16);
+ *g = (int)((hash & 0x00ff00) >> 8);
+ *b = (int)(hash & 0x0000ff);
}
#endif // __BLI_HASH_H__
More information about the Bf-blender-cvs
mailing list