]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/mediactrl_am.cpp
better guarding when no printing architecture exists (patch from Joel Low)
[wxWidgets.git] / 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))