ENH: fix it to work with stl debug mode on mac

This commit is contained in:
Bill Hoffman 2006-11-09 16:07:38 -05:00
parent b0bc59f709
commit 9442cd33ba
1 changed files with 3 additions and 2 deletions

View File

@ -833,8 +833,9 @@ void cmCTestBuildHandler::ProcessBuffer(const char* data, int length,
{
// This is not an error or warning.
// So, figure out if this is a post-context line
if ( this->LastErrorOrWarning != this->ErrorsAndWarnings.end() &&
this->PostContextCount < this->MaxPostContext )
if ( this->ErrorsAndWarnings.size() &&
this->LastErrorOrWarning != this->ErrorsAndWarnings.end() &&
this->PostContextCount < this->MaxPostContext )
{
this->PostContextCount ++;
this->LastErrorOrWarning->PostContext += line;