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 {
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;
}
}
DoctypeChild //!< \<!doctype_child
};
-typedef bool (*simpleXMLCb)(void* data, SimpleXMLType type, const char* content, unsigned length);
+typedef bool (*simpleXMLCb)(void* data, SimpleXMLType type, const char* content, unsigned int length);
typedef bool (*simpleXMLAttributeCb)(void* data, const char* key, const char* value);
bool simpleXmlParseAttributes(const char* buf, unsigned buflen, simpleXMLAttributeCb func, const void* data);