From aa2862965563162c58f086a59a2a068f4b2bf831 Mon Sep 17 00:00:00 2001 From: Colin Clark Date: Tue, 13 Sep 2022 10:13:21 -0400 Subject: [PATCH] gh-52: Ensuring all constants are actually constant, for MSVC. --- libsignaletic/include/libsignaletic.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libsignaletic/include/libsignaletic.h b/libsignaletic/include/libsignaletic.h index 392e21e..1c160ad 100644 --- a/libsignaletic/include/libsignaletic.h +++ b/libsignaletic/include/libsignaletic.h @@ -34,8 +34,8 @@ extern "C" { #endif static const float sig_PI = 3.14159265358979323846f; -static const float sig_TWOPI = 2.0f * sig_PI; -static const float sig_RECIP_TWOPI = 1.0f / sig_TWOPI; +static const float sig_TWOPI = 6.283185307179586f; +static const float sig_RECIP_TWOPI = 0.159154943091895f; /** * Returns the smaller of two floating point arguments.