]> granicus.if.org Git - taglib/commitdiff
Fix VC++ specific warnings
authorTsuda Kageyu <tsuda.kageyu@gmail.com>
Sun, 14 Apr 2013 20:23:39 +0000 (05:23 +0900)
committerTsuda Kageyu <tsuda.kageyu@gmail.com>
Sun, 14 Apr 2013 20:23:39 +0000 (05:23 +0900)
taglib/mp4/mp4tag.cpp

index 3c22f0622f4623cbdc6a3ae4170c557aa9ce0e91..17ab766f6dfb4434b3d59cee9efcdaa4413999b9 100644 (file)
@@ -895,8 +895,8 @@ PropertyMap MP4::Tag::setProperties(const PropertyMap &props)
         d->items[name] = MP4::Item(value);
       }
       else if(it->first == "COMPILATION") {
-        bool value = it->second.front().toInt();
-        d->items[name] = MP4::Item(value > 0);
+        bool value = (it->second.front().toInt() != 0);
+        d->items[name] = MP4::Item(value);
       }
       else {
         d->items[name] = it->second;