diff options
-rw-r--r-- | platform/glfw/glfw_view.cpp | 6 |
1 files 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 }; } |