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/nodes/function | |
parent | 28b10224346a9a2e55267f98357991a841eeda5b (diff) |
Cleanup: use C++ style casts in various places
Diffstat (limited to 'source/blender/nodes/function')
-rw-r--r-- | source/blender/nodes/function/nodes/node_fn_random_float.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/nodes/function/nodes/node_fn_random_float.cc b/source/blender/nodes/function/nodes/node_fn_random_float.cc index 2ee0830637a..584c544946e 100644 --- a/source/blender/nodes/function/nodes/node_fn_random_float.cc +++ b/source/blender/nodes/function/nodes/node_fn_random_float.cc @@ -57,7 +57,7 @@ class RandomFloatFunction : public blender::fn::MultiFunction { const float min_value = min_values[i]; const float max_value = max_values[i]; const int seed = seeds[i]; - const float value = BLI_hash_int_01((uint32_t)seed ^ function_seed_); + const float value = BLI_hash_int_01(static_cast<uint32_t>(seed) ^ function_seed_); values[i] = value * (max_value - min_value) + min_value; } } |