From 8caf4b5aaf91b5ffabc65d2ac2f000d8603ba233 Mon Sep 17 00:00:00 2001 From: Underground78 Date: Wed, 10 Aug 2011 20:08:23 +0000 Subject: Fix ~130 C4018 warnings (signed/unsigned mismatch). Patch partially by XhmikosR. git-svn-id: https://mpc-hc.svn.sourceforge.net/svnroot/mpc-hc/trunk@3637 10f7b99b-c216-0410-bff0-8a66a9350fd8 --- src/apps/mplayerc/Playlist.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/apps/mplayerc/Playlist.cpp') diff --git a/src/apps/mplayerc/Playlist.cpp b/src/apps/mplayerc/Playlist.cpp index 1acbf3773..a2fb81ffb 100644 --- a/src/apps/mplayerc/Playlist.cpp +++ b/src/apps/mplayerc/Playlist.cpp @@ -210,7 +210,7 @@ void CPlaylistItem::AutoLoadFiles() CAtlArray ret; GetSubFileNames(fn, paths, ret); - for (int i = 0; i < ret.GetCount(); i++) { + for (size_t i = 0; i < ret.GetCount(); i++) { if (!FindFileInList(m_subs, ret[i].fn)) { m_subs.AddTail(ret[i].fn); } @@ -283,7 +283,7 @@ void CPlaylist::SortById() a[i].n = GetAt(pos).m_id, a[i].pos = pos; } qsort(a.GetData(), a.GetCount(), sizeof(plsort_t), compare); - for (int i = 0; i < a.GetCount(); i++) { + for (size_t i = 0; i < a.GetCount(); i++) { AddTail(GetAt(a[i].pos)); __super::RemoveAt(a[i].pos); if (m_pos == a[i].pos) { @@ -303,7 +303,7 @@ void CPlaylist::SortByName() a[i].pos = pos; } qsort(a.GetData(), a.GetCount(), sizeof(plsort2_t), compare2); - for (int i = 0; i < a.GetCount(); i++) { + for (size_t i = 0; i < a.GetCount(); i++) { AddTail(GetAt(a[i].pos)); __super::RemoveAt(a[i].pos); if (m_pos == a[i].pos) { @@ -321,7 +321,7 @@ void CPlaylist::SortByPath() a[i].str = GetAt(pos).m_fns.GetHead(), a[i].pos = pos; } qsort(a.GetData(), a.GetCount(), sizeof(plsort2_t), compare2); - for (int i = 0; i < a.GetCount(); i++) { + for (size_t i = 0; i < a.GetCount(); i++) { AddTail(GetAt(a[i].pos)); __super::RemoveAt(a[i].pos); if (m_pos == a[i].pos) { @@ -341,7 +341,7 @@ void CPlaylist::Randomize() } qsort(a.GetData(), a.GetCount(), sizeof(plsort_t), compare); CList pl; - for (int i = 0; i < a.GetCount(); i++) { + for (size_t i = 0; i < a.GetCount(); i++) { AddTail(GetAt(a[i].pos)); __super::RemoveAt(a[i].pos); if (m_pos == a[i].pos) { -- cgit v1.2.3