1
0
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:
janwas
2010-09-05 09:38:30 +00:00
parent 178d45d0e2
commit 2e7436434d
29 changed files with 110 additions and 71 deletions
+1 -1
View File
@@ -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);