From 653e9fe5dadf07d6309a461a1c2a9721e353259d Mon Sep 17 00:00:00 2001 From: Remco Burema Date: Tue, 2 Jul 2024 14:56:54 +0200 Subject: [PATCH] Fix it on other compilers. --- include/settings/types/Angle.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/settings/types/Angle.h b/include/settings/types/Angle.h index 0f60e6d3c0..0aacadada2 100644 --- a/include/settings/types/Angle.h +++ b/include/settings/types/Angle.h @@ -115,7 +115,7 @@ class AngleRadians /* * \brief Translate the double value in degrees to an AngleRadians instance. */ - const AngleRadians(double value) + AngleRadians(double value) : value_(std::fmod(std::fmod(value, TAU) + TAU, TAU)) { }