Fix compiler crash on Windows
This commit is contained in:
parent
65e76fbcb7
commit
af9b5f37aa
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue