]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/mediactrl_am.cpp
fix wxMSW shared builds
[wxWidgets.git] / src / msw / mediactrl_am.cpp
index 75acd4f99e765b256cb8e4013818a37592a41b7d..d86f8723732a7b3a3ca6e1a0012b9dc320698ec0 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 = static_cast<long>(2000*log10(dVolume + (1 - dVolume)*0.00001));
 
     HRESULT hr = GetAM()->put_Volume(lVolume);
     if(FAILED(hr))