diff options
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 { |