make cast from double to long explicit to suppress gcc warning (part of patch 1962992)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53630 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1983,7 +1983,7 @@ double wxAMMediaBackend::GetVolume()
|
|||||||
bool wxAMMediaBackend::SetVolume(double dVolume)
|
bool wxAMMediaBackend::SetVolume(double dVolume)
|
||||||
{
|
{
|
||||||
// inverse the transformation above
|
// 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);
|
HRESULT hr = GetAM()->put_Volume(lVolume);
|
||||||
if(FAILED(hr))
|
if(FAILED(hr))
|
||||||
|
Reference in New Issue
Block a user