[clang-tools-extra] r334013 - Silence a "truncation from double to float" diagnostic in MSVC; NFC.
Aaron Ballman via cfe-commits
cfe-commits at lists.llvm.org
Tue Jun 5 05:14:47 PDT 2018
Author: aaronballman
Date: Tue Jun 5 05:14:47 2018
New Revision: 334013
URL: http://llvm.org/viewvc/llvm-project?rev=334013&view=rev
Log:
Silence a "truncation from double to float" diagnostic in MSVC; NFC.
Modified:
clang-tools-extra/trunk/unittests/clangd/QualityTests.cpp
Modified: clang-tools-extra/trunk/unittests/clangd/QualityTests.cpp
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/unittests/clangd/QualityTests.cpp?rev=334013&r1=334012&r2=334013&view=diff
==============================================================================
--- clang-tools-extra/trunk/unittests/clangd/QualityTests.cpp (original)
+++ clang-tools-extra/trunk/unittests/clangd/QualityTests.cpp Tue Jun 5 05:14:47 2018
@@ -135,7 +135,7 @@ TEST(QualityTests, SymbolRelevanceSignal
EXPECT_LT(PoorNameMatch.evaluate(), Default.evaluate());
SymbolRelevanceSignals WithProximity;
- WithProximity.ProximityScore = 0.2;
+ WithProximity.ProximityScore = 0.2f;
EXPECT_LT(Default.evaluate(), WithProximity.evaluate());
}
More information about the cfe-commits
mailing list