cmServer: Fix compiler -Wdouble-promotion warning

This commit is contained in:
Brad King 2017-05-24 10:55:45 -04:00
parent 43d9b296f5
commit aa7e9a9674

View File

@ -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);