From 0c055ccfe11108af6b0f1d061ddd578bb599b6bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Thu, 7 Dec 2023 12:32:19 +0100 Subject: [PATCH] Math: don't use a float literal in a generic type. --- src/Magnum/Math/Quaternion.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Magnum/Math/Quaternion.h b/src/Magnum/Math/Quaternion.h index da130dec0..75a80001c 100644 --- a/src/Magnum/Math/Quaternion.h +++ b/src/Magnum/Math/Quaternion.h @@ -855,7 +855,7 @@ template inline Quaternion Quaternion::rotation(const Rad angl template inline Quaternion Quaternion::reflection(const Vector3& normal) { CORRADE_DEBUG_ASSERT(normal.isNormalized(), "Math::Quaternion::reflection(): normal" << normal << "is not normalized", {}); - return {normal, 0.0f}; + return {normal, T(0)}; } template inline Quaternion Quaternion::fromMatrix(const Matrix3x3& matrix) {