diff options
author | Campbell Barton <campbell@blender.org> | 2022-09-26 10:38:25 +0300 |
---|---|---|
committer | Campbell Barton <campbell@blender.org> | 2022-09-26 10:58:36 +0300 |
commit | 333e41eac6daf60c6aa9df0496a39c57d74b9c87 (patch) | |
tree | 5986e980fd64bc4ef1c3dda125a0f9dca4bab2c8 /source/blender/draw/engines/eevee_next/eevee_material.hh | |
parent | 0210c4df1793799a09a35e44be286dfca88769dc (diff) |
Cleanup: replace C-style casts with functional casts for numeric types
Use function style casts in C++ headers & source.
Diffstat (limited to 'source/blender/draw/engines/eevee_next/eevee_material.hh')
-rw-r--r-- | source/blender/draw/engines/eevee_next/eevee_material.hh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/draw/engines/eevee_next/eevee_material.hh b/source/blender/draw/engines/eevee_next/eevee_material.hh index ad0c293926b..f4b1f60b456 100644 --- a/source/blender/draw/engines/eevee_next/eevee_material.hh +++ b/source/blender/draw/engines/eevee_next/eevee_material.hh @@ -120,7 +120,7 @@ struct MaterialKey { uint64_t hash() const { BLI_assert(options < sizeof(*mat)); - return (uint64_t)mat + options; + return uint64_t(mat) + options; } bool operator<(const MaterialKey &k) const @@ -154,7 +154,7 @@ struct ShaderKey { uint64_t hash() const { - return (uint64_t)shader + options; + return uint64_t(shader) + options; } bool operator<(const ShaderKey &k) const |