From 4dae1553dd166df3cc094d5f8c7b8fae27677aa8 Mon Sep 17 00:00:00 2001 From: Sylvestre Ledru Date: Thu, 29 Aug 2019 11:35:42 +0000 Subject: [PATCH] Bug 1577236 - clang-10: Fix -Wimplicit-int-float-conversion warnings in dom/base/ r=Ehsan Depends on D43780 Differential Revision: https://phabricator.services.mozilla.com/D43781 --HG-- extra : moz-landing-system : lando --- dom/base/ContentBlockingLog.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dom/base/ContentBlockingLog.cpp b/dom/base/ContentBlockingLog.cpp index 2d3d11a14809..4b9b790cb472 100644 --- a/dom/base/ContentBlockingLog.cpp +++ b/dom/base/ContentBlockingLog.cpp @@ -79,7 +79,7 @@ static bool IsReportingPerUserEnabled() { static bool IsReportingPerDocumentEnabled() { constexpr double boundary = - kRatioReportDocument * std::numeric_limits::max(); + kRatioReportDocument * double(std::numeric_limits::max()); Maybe randomNum = RandomUint64(); return randomNum.isSome() && randomNum.value() <= boundary; } -- 2.11.4.GIT