- cleaned up more compiler warnings

- added unsigned 64 bit type for windows
This commit is contained in:
Mark Vejvoda
2010-10-21 15:55:12 +00:00
parent c6a4e53151
commit 45a26a4597
3 changed files with 6 additions and 4 deletions

View File

@@ -31,6 +31,7 @@ typedef unsigned short int uint16;
typedef int int32;
typedef unsigned int uint32;
typedef long long int64;
typedef unsigned long long uint64;
}}//end namespace

View File

@@ -19,6 +19,7 @@
#include <xercesc/util/PlatformUtils.hpp>
#include <xercesc/framework/LocalFileFormatTarget.hpp>
#include "util.h"
#include "types.h"
#include "leak_dumper.h"
@@ -41,7 +42,7 @@ public:
char msgStr[strSize], fileStr[strSize];
XMLString::transcode(domError.getMessage(), msgStr, strSize-1);
XMLString::transcode(domError.getLocation()->getURI(), fileStr, strSize-1);
uint64 lineNumber= domError.getLocation()->getLineNumber();
Shared::Platform::uint64 lineNumber= domError.getLocation()->getLineNumber();
throw runtime_error("Error parsing XML, file: " + string(fileStr) + ", line: " + intToStr(lineNumber) + ": " + string(msgStr));
}
return true;