summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Pilgrim <llvm-dev@redking.me.uk>2018-01-22 13:15:16 +0000
committerSimon Pilgrim <llvm-dev@redking.me.uk>2018-01-22 13:15:16 +0000
commit62dbdf1790eb05f2716475ccb0d37efc18293cc5 (patch)
tree3a1b331f987a709dad06e3232b62e5e2ff0ad3d4
parent43cee17cbff164683a593b9d0296a07170cd1280 (diff)
downloadbcm5719-llvm-62dbdf1790eb05f2716475ccb0d37efc18293cc5.tar.gz
bcm5719-llvm-62dbdf1790eb05f2716475ccb0d37efc18293cc5.zip
Fix MSVC implicit double-float truncation warning. NFCI.
llvm-svn: 323112
-rw-r--r--clang-tools-extra/clangd/CodeComplete.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang-tools-extra/clangd/CodeComplete.cpp b/clang-tools-extra/clangd/CodeComplete.cpp
index 639547d74c2..9f1e296c62d 100644
--- a/clang-tools-extra/clangd/CodeComplete.cpp
+++ b/clang-tools-extra/clangd/CodeComplete.cpp
@@ -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;
OpenPOWER on IntegriCloud