diff options
author | Campbell Barton <campbell@blender.org> | 2022-09-25 11:30:50 +0300 |
---|---|---|
committer | Campbell Barton <campbell@blender.org> | 2022-09-25 11:31:10 +0300 |
commit | c7b247a118e302a3afc6473797e53b6af28b69e2 (patch) | |
tree | d11149a165bfd8f3b3b791f24547499f041b133b /source/blender/blenkernel/intern/type_conversions.cc | |
parent | 891949cbb47143420f4324cb60efc05ef5d70b39 (diff) |
Cleanup: replace static_casts with functional casts for numeric types
Diffstat (limited to 'source/blender/blenkernel/intern/type_conversions.cc')
-rw-r--r-- | source/blender/blenkernel/intern/type_conversions.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/blenkernel/intern/type_conversions.cc b/source/blender/blenkernel/intern/type_conversions.cc index a01f5d19088..852fe38c92f 100644 --- a/source/blender/blenkernel/intern/type_conversions.cc +++ b/source/blender/blenkernel/intern/type_conversions.cc @@ -163,7 +163,7 @@ static bool int8_to_bool(const int8_t &a) } static int int8_to_int(const int8_t &a) { - return static_cast<int>(a); + return int(a); } static float int8_to_float(const int8_t &a) { @@ -192,7 +192,7 @@ static float bool_to_float(const bool &a) } static int8_t bool_to_int8(const bool &a) { - return static_cast<int8_t>(a); + return int8_t(a); } static int32_t bool_to_int(const bool &a) { |