Skip to content

Commit c4e29af

Browse files
authored
Fix issue 1000 (#1040)
* fix compilation warnings produced by -Wold-style-cast * remove incorrect cast
1 parent 5c9a452 commit c4e29af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tinyxml2.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2656,7 +2656,7 @@ void XMLPrinter::Write( const char* data, size_t size )
26562656
fwrite ( data , sizeof(char), size, _fp);
26572657
}
26582658
else {
2659-
char* p = _buffer.PushArr( static_cast<int>(size) ) - 1; // back up over the null terminator.
2659+
char* p = _buffer.PushArr( size ) - 1; // back up over the null terminator.
26602660
memcpy( p, data, size );
26612661
p[size] = 0;
26622662
}

0 commit comments

Comments
 (0)