diff options
author | Jacques Lucke <jacques@blender.org> | 2020-08-07 19:24:59 +0300 |
---|---|---|
committer | Jacques Lucke <jacques@blender.org> | 2020-08-07 19:42:21 +0300 |
commit | c50e5fcc344d00b03eb4a3141b5b45944c3570fd (patch) | |
tree | f683ae1a1f38551d160a5be2ee86561d51faca26 /source/blender/simulation/intern/particle_allocator.cc | |
parent | 28b10224346a9a2e55267f98357991a841eeda5b (diff) |
Cleanup: use C++ style casts in various places
Diffstat (limited to 'source/blender/simulation/intern/particle_allocator.cc')
-rw-r--r-- | source/blender/simulation/intern/particle_allocator.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/simulation/intern/particle_allocator.cc b/source/blender/simulation/intern/particle_allocator.cc index e47a6354d81..91ca667a239 100644 --- a/source/blender/simulation/intern/particle_allocator.cc +++ b/source/blender/simulation/intern/particle_allocator.cc @@ -71,9 +71,9 @@ fn::MutableAttributesRef ParticleAllocator::allocate(int size) } else if (name == "Hash") { MutableSpan<int> hashes = attributes.get<int>("Hash"); - RandomNumberGenerator rng(hash_seed_ ^ (uint32_t)next_id_); + RandomNumberGenerator rng(hash_seed_ ^ static_cast<uint32_t>(next_id_)); for (int pindex : IndexRange(size)) { - hashes[pindex] = (int)rng.get_uint32(); + hashes[pindex] = static_cast<int>(rng.get_uint32()); } } else { |