diff --git a/src/system/ytparser.cpp b/src/system/ytparser.cpp index 0c0b833bb..f164d6da4 100644 --- a/src/system/ytparser.cpp +++ b/src/system/ytparser.cpp @@ -21,6 +21,7 @@ #include #include #include +#include #include #include @@ -171,7 +172,7 @@ void cYTFeedParser::decodeUrl(std::string &url) void cYTFeedParser::splitString(std::string &str, std::string delim, std::vector &strlist, int start) { strlist.clear(); - int end = 0; + unsigned int end = 0; while ((end = str.find(delim, start)) != std::string::npos) { strlist.push_back(str.substr(start, end - start)); start = end + delim.size(); @@ -181,7 +182,7 @@ void cYTFeedParser::splitString(std::string &str, std::string delim, std::vector void cYTFeedParser::splitString(std::string &str, std::string delim, std::map &strmap, int start) { - int end = 0; + unsigned int end = 0; if ((end = str.find(delim, start)) != std::string::npos) { strmap[str.substr(start, end - start)] = str.substr(end - start + delim.size()); }