]> granicus.if.org Git - taglib/commitdiff
Fix compilation errors with Visual Studio 2010
authorTsuda Kageyu <tsuda.kageyu@gmail.com>
Thu, 23 Aug 2012 10:58:21 +0000 (19:58 +0900)
committerTsuda Kageyu <tsuda.kageyu@gmail.com>
Thu, 23 Aug 2012 10:58:21 +0000 (19:58 +0900)
taglib/ape/apetag.cpp
taglib/mpc/mpcproperties.cpp

index f1af0028c452707a890ca49558ef55170379b092..664ee3a816612dd4e91b15233d507cf9d3074355 100644 (file)
@@ -260,7 +260,7 @@ PropertyMap APE::Tag::setProperties(const PropertyMap &origProps)
 
 bool APE::Tag::checkKey(const String &key)
 {
-  if(key.size() < 2 or key.size() > 16)
+  if(key.size() < 2 || key.size() > 16)
       return false;
     for(String::ConstIterator it = key.begin(); it != key.end(); it++)
         // only allow printable ASCII including space (32..127)
index 7046db99742e4e584a3150e537d78b1eaea56898..637bb48064eec176b098c636fa332f30f4e744b1 100644 (file)
@@ -279,10 +279,10 @@ void MPC::Properties::readSV7(const ByteVector &data)
     }
 
     if (d->trackPeak != 0)
-      d->trackPeak = (int)(log10(d->trackPeak) * 20 * 256 + .5);
+      d->trackPeak = (int)(log10((double)d->trackPeak) * 20 * 256 + .5);
 
     if (d->albumPeak != 0)
-      d->albumPeak = (int)(log10(d->albumPeak) * 20 * 256 + .5);
+      d->albumPeak = (int)(log10((double)d->albumPeak) * 20 * 256 + .5);
 
     bool trueGapless = (gapless >> 31) & 0x0001;
     if(trueGapless) {