diff --git a/Source/cmCTest.cxx b/Source/cmCTest.cxx index 60f01aa9a5..75a564e788 100644 --- a/Source/cmCTest.cxx +++ b/Source/cmCTest.cxx @@ -3099,7 +3099,7 @@ bool cmCTest::CompressString(std::string& str) return false; } - strm.avail_in = str.size(); + strm.avail_in = static_cast(str.size()); strm.next_in = in; strm.avail_out = outSize; strm.next_out = out;