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:
Vadim Zeitlin
2008-05-17 23:07:20 +00:00
parent 462167a9f7
commit 13e245c82a

View File

@@ -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))