From 8e9d5df59a32a59906a78ac1e3e45fc266815a07 Mon Sep 17 00:00:00 2001 From: Karl Dietz Date: Wed, 5 Jun 2013 00:07:44 +0200 Subject: [PATCH] fix type of counter to match length --- mythtv/libs/libmyth/programinfo.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mythtv/libs/libmyth/programinfo.cpp b/mythtv/libs/libmyth/programinfo.cpp index dcbb1679541..f59cf4af219 100644 --- a/mythtv/libs/libmyth/programinfo.cpp +++ b/mythtv/libs/libmyth/programinfo.cpp @@ -100,7 +100,7 @@ ProgramInfo::CategoryType string_to_myth_category_type(const QString &category_t static const char *cattype[] = { "", "movie", "series", "sports", "tvshow", }; - for (uint i = 1; i < NUM_CAT_TYPES; i++) + for (int i = 1; i < NUM_CAT_TYPES; i++) if (category_type == cattype[i]) return (ProgramInfo::CategoryType) i; return ProgramInfo::kCategoryNone;