From 86142343eea3c92c3a94b86b022f637da15e094f Mon Sep 17 00:00:00 2001 From: Tsuda Kageyu Date: Mon, 15 Apr 2013 05:23:39 +0900 Subject: [PATCH] Fix VC++ specific warnings --- taglib/mp4/mp4tag.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/taglib/mp4/mp4tag.cpp b/taglib/mp4/mp4tag.cpp index 3c22f062..17ab766f 100644 --- a/taglib/mp4/mp4tag.cpp +++ b/taglib/mp4/mp4tag.cpp @@ -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; -- 2.40.0