diff --git a/Unreal/CarlaUE4/Plugins/Carla/Source/Carla/MapGen/DoublyConnectedEdgeList.cpp b/Unreal/CarlaUE4/Plugins/Carla/Source/Carla/MapGen/DoublyConnectedEdgeList.cpp index 58a2db67a..3d1108b27 100644 --- a/Unreal/CarlaUE4/Plugins/Carla/Source/Carla/MapGen/DoublyConnectedEdgeList.cpp +++ b/Unreal/CarlaUE4/Plugins/Carla/Source/Carla/MapGen/DoublyConnectedEdgeList.cpp @@ -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;