diff options
author | Brad King <brad.king@kitware.com> | 2017-05-24 14:55:45 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2017-05-24 14:55:45 (GMT) |
commit | aa7e9a9674ac2317579442fe9e102e5c3be7fd39 (patch) | |
tree | 8fd483b4bdfd2fcc6ee5ea614c91eab9bf1b9a4e /Source/cmServer.cxx | |
parent | 43d9b296f5688b865bc2c40ea0af3b042047dfe8 (diff) | |
download | CMake-aa7e9a9674ac2317579442fe9e102e5c3be7fd39.zip CMake-aa7e9a9674ac2317579442fe9e102e5c3be7fd39.tar.gz CMake-aa7e9a9674ac2317579442fe9e102e5c3be7fd39.tar.bz2 |
cmServer: Fix compiler -Wdouble-promotion warning
Diffstat (limited to 'Source/cmServer.cxx')
-rw-r--r-- | Source/cmServer.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
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<const cmServerRequest*>(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<int>(progress * 1000), 1000, msg); |