aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--AudioFile.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/AudioFile.cpp b/AudioFile.cpp
index 661d662..a309a75 100644
--- a/AudioFile.cpp
+++ b/AudioFile.cpp
@@ -209,11 +209,11 @@ AudioFile::AudioFile(const std::string &filename) :
bool AudioFile::operator<(const AudioFile &other) const
{
int comp;
- if (comp = m_artist.compare(other.m_artist))
+ if ((comp = m_artist.compare(other.m_artist)))
return comp < 0;
if (m_year != other.m_year)
return m_year < other.m_year;
- if (comp = m_album.compare(other.m_album))
+ if ((comp = m_album.compare(other.m_album)))
return comp < 0;
if (m_track != other.m_track)
return m_track < other.m_track;