1
0
mirror of https://github.com/leethomason/tinyxml2.git synced 2026-07-21 19:23:00 +04:00

Fix issue 1000 (#1040)

* fix compilation warnings produced by -Wold-style-cast

* remove incorrect cast
This commit is contained in:
LuridHound
2025-11-23 03:08:17 +03:00
committed by GitHub
parent 5c9a452c73
commit c4e29afeaf
+1 -1
View File
@@ -2656,7 +2656,7 @@ void XMLPrinter::Write( const char* data, size_t size )
fwrite ( data , sizeof(char), size, _fp);
}
else {
char* p = _buffer.PushArr( static_cast<int>(size) ) - 1; // back up over the null terminator.
char* p = _buffer.PushArr( size ) - 1; // back up over the null terminator.
memcpy( p, data, size );
p[size] = 0;
}