From aa7e9a9674ac2317579442fe9e102e5c3be7fd39 Mon Sep 17 00:00:00 2001 From: Brad King Date: Wed, 24 May 2017 10:55:45 -0400 Subject: cmServer: Fix compiler -Wdouble-promotion warning --- Source/cmServer.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/cmServer.cxx b/Source/cmServer.cxx index 19bdd45..7fc6ed7 100644 --- a/Source/cmServer.cxx +++ b/Source/cmServer.cxx @@ -147,7 +147,7 @@ void cmServer::reportProgress(const char* msg, float progress, void* data) { const cmServerRequest* request = static_cast(data); assert(request); - if (progress < 0.0 || progress > 1.0) { + if (progress < 0.0f || progress > 1.0f) { request->ReportMessage(msg, ""); } else { request->ReportProgress(0, static_cast(progress * 1000), 1000, msg); -- cgit v0.12