mirror of
https://github.com/AxioDL/tinyxml2.git
synced 2025-05-14 19:31:23 +00:00
Merge pull request #361 from RossBencina/master
fix compiler warning (XCode 4.6.1 x86_64) tinyxml2.cpp:2146:77: Impli…
This commit is contained in:
commit
78fca3db83
@ -2143,7 +2143,7 @@ void XMLPrinter::PrintString( const char* p, bool restricted )
|
|||||||
while ( p < q ) {
|
while ( p < q ) {
|
||||||
const size_t delta = q - p;
|
const size_t delta = q - p;
|
||||||
// %.*s accepts type int as "precision"
|
// %.*s accepts type int as "precision"
|
||||||
const int toPrint = ( INT_MAX < delta ) ? INT_MAX : delta;
|
const int toPrint = ( INT_MAX < delta ) ? INT_MAX : (int)delta;
|
||||||
Print( "%.*s", toPrint, p );
|
Print( "%.*s", toPrint, p );
|
||||||
p += toPrint;
|
p += toPrint;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user