diff options
author | vladlosev <vladlosev@861a406c-534a-0410-8894-cb66d6ee9925> | 2009-10-14 22:33:03 +0000 |
---|---|---|
committer | vladlosev <vladlosev@861a406c-534a-0410-8894-cb66d6ee9925> | 2009-10-14 22:33:03 +0000 |
commit | 060804deb8c05b5ea5735b875eaea2c7493e2262 (patch) | |
tree | c3499832d2951338fe843bfcceb51c934a9ee100 /src | |
parent | 9007cb4f8af796f545fe7e1f552e78bf7296d18a (diff) | |
download | googletest-060804deb8c05b5ea5735b875eaea2c7493e2262.tar.gz googletest-060804deb8c05b5ea5735b875eaea2c7493e2262.tar.bz2 googletest-060804deb8c05b5ea5735b875eaea2c7493e2262.zip |
Fixes: Scons build file broken when used in another SConstruct; warning in VC 8.0 when compiled with /Wp64
Diffstat (limited to 'src')
-rw-r--r-- | src/gtest.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gtest.cc b/src/gtest.cc index 93407245..55f03ce9 100644 --- a/src/gtest.cc +++ b/src/gtest.cc @@ -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 << "]]>]]><![CDATA["; segment = next_segment + strlen("]]>"); } else { |