[clang-tools-extra] r332716 - Silence a truncation warning; NFC.
Aaron Ballman via cfe-commits
cfe-commits at lists.llvm.org
Fri May 18 06:18:41 PDT 2018
Author: aaronballman
Date: Fri May 18 06:18:41 2018
New Revision: 332716
URL: http://llvm.org/viewvc/llvm-project?rev=332716&view=rev
Log:
Silence a truncation warning; NFC.
Modified:
clang-tools-extra/trunk/clangd/Quality.cpp
Modified: clang-tools-extra/trunk/clangd/Quality.cpp
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/clangd/Quality.cpp?rev=332716&r1=332715&r2=332716&view=diff
==============================================================================
--- clang-tools-extra/trunk/clangd/Quality.cpp (original)
+++ clang-tools-extra/trunk/clangd/Quality.cpp Fri May 18 06:18:41 2018
@@ -42,7 +42,7 @@ float SymbolQualitySignals::evaluate() c
Score *= 2 - std::min<float>(80, SemaCCPriority) / 40;
if (Deprecated)
- Score *= 0.1;
+ Score *= 0.1f;
return Score;
}
More information about the cfe-commits
mailing list