Merge pull request #484 from kainjow/patch-2
Fix warning on PowerPC
diff --git a/readme.md b/readme.md
index 82c6ce9..63f98fe 100644
--- a/readme.md
+++ b/readme.md
@@ -111,7 +111,7 @@
Microsoft has an excellent article on white space: http://msdn.microsoft.com/en-us/library/ms256097.aspx
-By default, TinyXML-2 preserves white space in a (hopefully) sane way that is almost complient with the
+By default, TinyXML-2 preserves white space in a (hopefully) sane way that is almost compliant with the
spec. (TinyXML-1 used a completely different model, much more similar to 'collapse', below.)
As a first step, all newlines / carriage-returns / line-feeds are normalized to a
diff --git a/tinyxml2.h b/tinyxml2.h
index 8d5eb2a..fbfe4f6 100755
--- a/tinyxml2.h
+++ b/tinyxml2.h
@@ -570,6 +570,9 @@
if ( p == q ) {
return true;
}
+ TIXMLASSERT( p );
+ TIXMLASSERT( q );
+ TIXMLASSERT( nChar >= 0 );
return strncmp( p, q, nChar ) == 0;
}