From 0d0ae229eb1d2078fe7fac5bb22dc8ea909f9014 Mon Sep 17 00:00:00 2001 From: "Thiago Marcos P. Santos" Date: Fri, 17 Apr 2020 11:52:15 +0300 Subject: [glfw] Fix clang-10 build Implicit conversion from int to float. --- platform/glfw/glfw_view.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/platform/glfw/glfw_view.cpp b/platform/glfw/glfw_view.cpp index aa320df831..06f435e4dd 100644 --- a/platform/glfw/glfw_view.cpp +++ b/platform/glfw/glfw_view.cpp @@ -504,9 +504,9 @@ void GLFWView::onKey(GLFWwindow *window, int key, int /*scancode*/, int action, } mbgl::Color GLFWView::makeRandomColor() const { - const float r = 1.0f * (float(std::rand()) / RAND_MAX); - const float g = 1.0f * (float(std::rand()) / RAND_MAX); - const float b = 1.0f * (float(std::rand()) / RAND_MAX); + const float r = 1.0f * float(std::rand()) / float(RAND_MAX); + const float g = 1.0f * float(std::rand()) / float(RAND_MAX); + const float b = 1.0f * float(std::rand()) / float(RAND_MAX); return { r, g, b, 1.0f }; } -- cgit v1.2.1