Fixes: Scons build file broken when used in another SConstruct; warning in VC 8.0 when compiled with /Wp64

This commit is contained in:
vladlosev
2009-10-14 22:33:03 +00:00
parent 9007cb4f8a
commit 060804deb8
4 changed files with 233 additions and 186 deletions

View File

@@ -3170,7 +3170,8 @@ void XmlUnitTestResultPrinter::OutputXmlCDataSection(::std::ostream* stream,
for (;;) {
const char* const next_segment = strstr(segment, "]]>");
if (next_segment != NULL) {
stream->write(segment, next_segment - segment);
stream->write(
segment, static_cast<std::streamsize>(next_segment - segment));
*stream << "]]>]]&gt;<![CDATA[";
segment = next_segment + strlen("]]>");
} else {