X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6e0e886278e51807256f0d7c32208855620ebba5..0c75b29e1ed19810546de38b646b5b901be873e2:/src/msw/mediactrl_am.cpp diff --git a/src/msw/mediactrl_am.cpp b/src/msw/mediactrl_am.cpp index 75acd4f99e..5c8ed2cc35 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 = wx_static_cast(long, 2000*log10(dVolume + (1 - dVolume)*0.00001)); HRESULT hr = GetAM()->put_Volume(lVolume); if(FAILED(hr))