From 71fab3da71e2bf1187033f035b0576f6e08b1fa2 Mon Sep 17 00:00:00 2001 From: Andrew Belt Date: Mon, 13 May 2019 13:13:15 -0400 Subject: [PATCH] Fix broken eucMod() --- include/math.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/math.hpp b/include/math.hpp index 7a75df4c..96cacccd 100644 --- a/include/math.hpp +++ b/include/math.hpp @@ -120,7 +120,7 @@ inline float normalizeZero(float x) { See https://en.wikipedia.org/wiki/Euclidean_division. */ inline float eucMod(float a, float b) { - int mod = std::fmod(a, b); + float mod = std::fmod(a, b); if (mod < 0.f) { mod += b; }