X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6e0e886278e51807256f0d7c32208855620ebba5..4f61df823f1c16f7678be5a67f1fa4e29d90c5ff:/src/msw/mediactrl_am.cpp?ds=sidebyside diff --git a/src/msw/mediactrl_am.cpp b/src/msw/mediactrl_am.cpp index 75acd4f99e..d86f872373 100644 --- a/src/msw/mediactrl_am.cpp +++ b/src/msw/mediactrl_am.cpp @@ -1983,7 +1983,7 @@ double wxAMMediaBackend::GetVolume() bool wxAMMediaBackend::SetVolume(double dVolume) { // inverse the transformation above - long lVolume = 2000*log10(dVolume + (1 - dVolume)*0.00001); + long lVolume = static_cast(2000*log10(dVolume + (1 - dVolume)*0.00001)); HRESULT hr = GetAM()->put_Volume(lVolume); if(FAILED(hr))