[clang-tools-extra] r318961 - Fix MSVC double-float implicit truncation warning. NFCI
Simon Pilgrim via cfe-commits
cfe-commits at lists.llvm.org
Fri Nov 24 10:18:42 PST 2017
Author: rksimon
Date: Fri Nov 24 10:18:42 2017
New Revision: 318961
URL: http://llvm.org/viewvc/llvm-project?rev=318961&view=rev
Log:
Fix MSVC double-float implicit truncation warning. NFCI
Modified:
clang-tools-extra/trunk/clangd/ClangdUnit.cpp
Modified: clang-tools-extra/trunk/clangd/ClangdUnit.cpp
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/clangd/ClangdUnit.cpp?rev=318961&r1=318960&r2=318961&view=diff
==============================================================================
--- clang-tools-extra/trunk/clangd/ClangdUnit.cpp (original)
+++ clang-tools-extra/trunk/clangd/ClangdUnit.cpp Fri Nov 24 10:18:42 2017
@@ -406,7 +406,7 @@ private:
// No penalty.
break;
case CXAvailability_Deprecated:
- Score *= 0.1;
+ Score *= 0.1f;
break;
case CXAvailability_NotAccessible:
case CXAvailability_NotAvailable:
More information about the cfe-commits
mailing list