From 386117c5eed31daee841551033049e138e5d67bc Mon Sep 17 00:00:00 2001
From: Moses Turner <moses@collabora.com>
Date: Sat, 13 Aug 2022 20:30:38 +0100
Subject: [PATCH] NFC: a/math: Make math_quat_from_swing prettier

---
 src/xrt/auxiliary/math/m_base.cpp | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/xrt/auxiliary/math/m_base.cpp b/src/xrt/auxiliary/math/m_base.cpp
index 5d06e9328..6a315b0fd 100644
--- a/src/xrt/auxiliary/math/m_base.cpp
+++ b/src/xrt/auxiliary/math/m_base.cpp
@@ -401,11 +401,11 @@ math_quat_from_swing(const struct xrt_vec2 *swing, struct xrt_quat *result)
 		result->z = 0.f;
 	} else {
 		// lim(x->0) (sin(x/2)/x) = 0.5, but sin(0)/0 is undefined, so we need to catch this with a conditional.
-		const float k(0.5);
-		result->w = float(1.0);
+		const float k = 0.5f;
+		result->w = 1.0f;
 		result->x = *a0 * k;
 		result->y = *a1 * k;
-		result->z = float(0);
+		result->z = 0.f;
 	}
 }