removed the pointer-diff
diff --git a/tinyxml2.cpp b/tinyxml2.cpp
index c545180..ff974ec 100644
--- a/tinyxml2.cpp
+++ b/tinyxml2.cpp
@@ -312,7 +312,7 @@
 	if ( *(p+1) == '#' && *(p+2) )

 	{

 		unsigned long ucs = 0;

-		ptrdiff_t delta = 0;

+		int delta = 0;

 		unsigned mult = 1;

 

 		if ( *(p+2) == 'x' )

@@ -325,7 +325,7 @@
 

 			if ( !q || !*q ) return 0;

 

-			delta = q-p;

+			delta = (q-p);

 			--q;

 

 			while ( *q != 'x' )

diff --git a/tinyxml2.h b/tinyxml2.h
index 368916c..cf4250b 100644
--- a/tinyxml2.h
+++ b/tinyxml2.h
@@ -36,6 +36,7 @@
 */

 /*

 	gcc: g++ -Wall tinyxml2.cpp xmltest.cpp -o gccxmltest.exe

+

 */

 

 #if defined( _DEBUG ) || defined( DEBUG ) || defined (__DEBUG__)

diff --git a/xmltest.cpp b/xmltest.cpp
index 532c1be..ac5931b 100644
--- a/xmltest.cpp
+++ b/xmltest.cpp
@@ -74,7 +74,7 @@
 

 int main( int /*argc*/, const char* /*argv*/ )

 {

-	#if defined( _MSC_VER )

+	#if defined( _MSC_VER ) && defined( DEBUG )

 		_CrtMemCheckpoint( &startMemState );

 	#endif	

 

@@ -544,6 +544,7 @@
 		doc.Parse( doctype );

 		

 		XMLTest( "Parsing repeated attributes.", ERROR_PARSING_ATTRIBUTE, doc.ErrorID() );	// is an  error to tinyxml (didn't use to be, but caused issues)

+		doc.PrintError();

 	}

 

 	{

@@ -732,7 +733,7 @@
 #endif

 	}

 

-	#if defined( _MSC_VER )

+	#if defined( _MSC_VER ) &&  defined( DEBUG )

 		_CrtMemCheckpoint( &endMemState );  

 		//_CrtMemDumpStatistics( &endMemState );