VectorSpace: Changes loop logic to avoid warning from gcc-4.5

This commit is contained in:
Henry Weller
2016-03-14 15:36:42 +00:00
parent 7037737d03
commit 06fcefebd2

View File

@ -60,14 +60,14 @@ Foam::word Foam::name
{ {
std::ostringstream buf; std::ostringstream buf;
buf << '('; buf << '(' << vs.v_[0];
for (direction i=0; i<Ncmpts-1; i++) for (direction i=1; i<Ncmpts; i++)
{ {
buf << vs.v_[i] << ','; buf << ',' << vs.v_[i];
} }
buf << vs.v_[Ncmpts-1] << ')'; buf << ')';
return buf.str(); return buf.str();
} }