From c7b247a118e302a3afc6473797e53b6af28b69e2 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Sun, 25 Sep 2022 18:30:50 +1000 Subject: Cleanup: replace static_casts with functional casts for numeric types --- source/blender/blenlib/intern/math_vec.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/blender/blenlib/intern/math_vec.cc') diff --git a/source/blender/blenlib/intern/math_vec.cc b/source/blender/blenlib/intern/math_vec.cc index 99c873299fe..8d1f850d8e5 100644 --- a/source/blender/blenlib/intern/math_vec.cc +++ b/source/blender/blenlib/intern/math_vec.cc @@ -108,7 +108,7 @@ isect_result isect_seg_seg(const mpq2 &v1, const mpq2 &v2, const mpq2 &v3, uint64_t hash_mpq_class(const mpq_class &value) { /* TODO: better/faster implementation of this. */ - return get_default_hash(static_cast(value.get_d())); + return get_default_hash(float(value.get_d())); } #endif -- cgit v1.2.3