diff options
author | Bastien Montagne <bastien@blender.org> | 2020-06-09 12:15:15 +0300 |
---|---|---|
committer | Bastien Montagne <bastien@blender.org> | 2020-06-09 12:16:32 +0300 |
commit | 74b0713d8ab033ec66dad06e2c1045c4dca1e6c9 (patch) | |
tree | 33e1e032af644f32dc47db5123c86553c102a391 /source/blender/blenlib/BLI_hash_tables.hh | |
parent | 874a078d86519cfab4be86b962b51193a6d5423f (diff) |
Fix warning-as-error about int to uint conversion in new BLI CPP code.
Was breaking build for me here...
Diffstat (limited to 'source/blender/blenlib/BLI_hash_tables.hh')
-rw-r--r-- | source/blender/blenlib/BLI_hash_tables.hh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenlib/BLI_hash_tables.hh b/source/blender/blenlib/BLI_hash_tables.hh index 93c887dedfa..b565b396a7a 100644 --- a/source/blender/blenlib/BLI_hash_tables.hh +++ b/source/blender/blenlib/BLI_hash_tables.hh @@ -59,7 +59,7 @@ inline constexpr uint32_t log2_ceil_u_constexpr(uint32_t x) inline constexpr uint32_t power_of_2_max_u_constexpr(uint32_t x) { - return 1 << log2_ceil_u_constexpr(x); + return 1u << log2_ceil_u_constexpr(x); } template<typename IntT> inline constexpr IntT ceil_division(IntT x, IntT y) |