forked from mirrors/0ad
warning fixes: mostly size_t vs. specialized API type and other type conversion.
added player_id_t typedef and INVALID_PLAYER, use that instead of -1. also added sanity checks to cpu.cpp to ensure ARCH_* is correct (see http://www.wildfiregames.com/forum/index.php?showtopic=13327&hl=) and further predefined macros to arch.h just to be sure. This was SVN commit r8079.
This commit is contained in:
@@ -200,7 +200,7 @@ void Skeleton::LoadSkeletonDataFromXml(const char* xmlData, size_t xmlLength, st
|
||||
try
|
||||
{
|
||||
xmlSetGenericErrorFunc(&xmlErrors, &errorHandler);
|
||||
doc = xmlParseMemory(xmlData, xmlLength);
|
||||
doc = xmlParseMemory(xmlData, (int)xmlLength);
|
||||
if (doc)
|
||||
{
|
||||
xmlNode* root = xmlDocGetRootElement(doc);
|
||||
|
||||
Reference in New Issue
Block a user