[easytag] Avoid a trivial sign comparison warning
- From: David King <davidk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [easytag] Avoid a trivial sign comparison warning
- Date: Tue, 5 Feb 2013 21:40:44 +0000 (UTC)
commit 738ef38c75e36ffdb2e12078994c3a2d923d402f
Author: David King <amigadave amigadave com>
Date: Tue Feb 5 20:05:57 2013 +0000
Avoid a trivial sign comparison warning
src/cddb.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/cddb.c b/src/cddb.c
index 6b7af53..808f00d 100644
--- a/src/cddb.c
+++ b/src/cddb.c
@@ -2943,8 +2943,8 @@ Cddb_Search_Album_From_Selected_Files (void)
"jazz", "misc", "newage", "reggae", "rock",
"soundtrack"
};
- static const gint CddbDirSize = sizeof(CddbDir)/sizeof(CddbDir[0]) - 1 ;
- guint i;
+ static const gsize CddbDirSize = G_N_ELEMENTS (CddbDir) - 1;
+ gsize i;
// We check if the file corresponding to the discid exists in each directory
for (i=0; i<=CddbDirSize; i++)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]