From: JunsuChoi Date: Thu, 21 Oct 2021 04:13:23 +0000 (+0900) Subject: svg_loader XMLParser: Clean up parameter type X-Git-Tag: accepted/tizen/6.5/unified/20211103.015235~53 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c6cee6349e30deaa7263e4277470cc524e8c095f;p=platform%2Fcore%2Fgraphics%2Ftizenvg.git svg_loader XMLParser: Clean up parameter type size_t to unsigned int --- diff --git a/src/loaders/svg/tvgXmlParser.cpp b/src/loaders/svg/tvgXmlParser.cpp index 786768d..59f309d 100644 --- a/src/loaders/svg/tvgXmlParser.cpp +++ b/src/loaders/svg/tvgXmlParser.cpp @@ -414,7 +414,7 @@ bool simpleXmlParse(const char* buf, unsigned bufLength, bool strip, simpleXMLCb end = _unskipWhiteSpacesAndXmlEntities(end, start); } - if (!func((void*)data, type, start, (size_t)(end - start))) return false; + if (!func((void*)data, type, start, (unsigned int)(end - start))) return false; itr = p + 1; } else { @@ -427,7 +427,7 @@ bool simpleXmlParse(const char* buf, unsigned bufLength, bool strip, simpleXMLCb p = itr; p = _skipWhiteSpacesAndXmlEntities(p, itrEnd); if (p) { - if (!func((void*)data, SimpleXMLType::Ignored, itr, (size_t)(p - itr))) return false; + if (!func((void*)data, SimpleXMLType::Ignored, itr, (unsigned int)(p - itr))) return false; itr = p; } } diff --git a/src/loaders/svg/tvgXmlParser.h b/src/loaders/svg/tvgXmlParser.h index 86068af..d96a631 100644 --- a/src/loaders/svg/tvgXmlParser.h +++ b/src/loaders/svg/tvgXmlParser.h @@ -44,7 +44,7 @@ enum class SimpleXMLType DoctypeChild //!< \