From 6c5e6e2a05bbb0e2d4b11e69f7a1f2e62214a7f0 Mon Sep 17 00:00:00 2001 From: phintuka Date: Tue, 19 Feb 2008 04:51:18 +0000 Subject: Remove compiler warning (suggest parentheses around && within ||) --- tools/playlist.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tools') diff --git a/tools/playlist.c b/tools/playlist.c index 9500b286..bba19a82 100644 --- a/tools/playlist.c +++ b/tools/playlist.c @@ -4,7 +4,7 @@ * See the main source file 'xineliboutput.c' for copyright information and * how to reach the author. * - * $Id: playlist.c,v 1.15 2008-02-19 04:24:34 phintuka Exp $ + * $Id: playlist.c,v 1.16 2008-02-19 04:51:18 phintuka Exp $ * */ @@ -943,7 +943,7 @@ cString cPlaylist::GetEntry(cPlaylistItem *i, bool isPlaylist, bool isCurrent) { cString Entry = ""; - if (*i->Artist && xc.playlist_artist || *i->Album && xc.playlist_album) { + if ((*i->Artist && xc.playlist_artist) || (*i->Album && xc.playlist_album)) { Entry = cString::sprintf("%s%s%s%s%s%s(%s%s%s)", isPlaylist ? (isCurrent ? "*" : " ") : "", isPlaylist ? "\t" : " ", -- cgit v1.2.3