From 477acd5f27beb00ffc1aef781b21c032c82af662 Mon Sep 17 00:00:00 2001 From: Paul Adenot Date: Thu, 30 Sep 2021 12:36:18 +0000 Subject: [PATCH] Bug 1733109 - narrowing conversion from 'double' to 'float' in HTMLMediaElement.cpp. r=alwu Depends on D126945 Differential Revision: https://phabricator.services.mozilla.com/D126946 --- dom/html/HTMLMediaElement.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dom/html/HTMLMediaElement.cpp b/dom/html/HTMLMediaElement.cpp index 83f18d4217e0..ebaa281f7ddf 100644 --- a/dom/html/HTMLMediaElement.cpp +++ b/dom/html/HTMLMediaElement.cpp @@ -7155,7 +7155,7 @@ void HTMLMediaElement::SetDecoder(MediaDecoder* aDecoder) { float HTMLMediaElement::ComputedVolume() const { return mMuted ? 0.0f : mAudioChannelWrapper ? mAudioChannelWrapper->GetEffectiveVolume() - : mVolume; + : static_cast(mVolume); } bool HTMLMediaElement::ComputedMuted() const {