]> git.saurik.com Git - wxWidgets.git/commitdiff
make cast from double to long explicit to suppress gcc warning (part of patch 1962992)
authorVadim Zeitlin <vadim@wxwidgets.org>
Sat, 17 May 2008 23:07:20 +0000 (23:07 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sat, 17 May 2008 23:07:20 +0000 (23:07 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53630 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/mediactrl_am.cpp

index 75acd4f99e765b256cb8e4013818a37592a41b7d..5c8ed2cc35c455249b3876f1bc4cf7ba0e4d46ea 100644 (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))