Fix compiler crash on Windows

This commit is contained in:
nsubiron 2018-01-30 16:32:24 +00:00
parent 65e76fbcb7
commit af9b5f37aa
1 changed files with 1 additions and 1 deletions

View File

@ -44,7 +44,7 @@ namespace MapGen {
using Dcel = DoublyConnectedEdgeList;
// from [-pi, pi] to [0, 1].
auto normalize = [](auto a) {
constexpr decltype(a) twoPi = 2.0 * 3.14159265359;
constexpr float twoPi = 2.0 * 3.14159265359;
a /= twoPi;
while (a >= 1.0) a -= 1.0;
while (a < 0.0) a += 1.0;