Author: rksimon Date: Mon Jan 22 05:15:16 2018 New Revision: 323112 URL: http://llvm.org/viewvc/llvm-project?rev=323112&view=rev Log: Fix MSVC implicit double-float truncation warning. NFCI.
Modified: clang-tools-extra/trunk/clangd/CodeComplete.cpp Modified: clang-tools-extra/trunk/clangd/CodeComplete.cpp URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/clangd/CodeComplete.cpp?rev=323112&r1=323111&r2=323112&view=diff ============================================================================== --- clang-tools-extra/trunk/clangd/CodeComplete.cpp (original) +++ clang-tools-extra/trunk/clangd/CodeComplete.cpp Mon Jan 22 05:15:16 2018 @@ -227,7 +227,7 @@ struct CompletionCandidate { float score() const { // For now we just use the Sema priority, mapping it onto a 0-1 interval. if (!SemaResult) // FIXME(sammccall): better scoring for index results. - return 0.3; // fixed mediocre score for index-only results. + return 0.3f; // fixed mediocre score for index-only results. // Priority 80 is a really bad score. float Score = 1 - std::min<float>(80, SemaResult->Priority) / 80; _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits