Commit 06fcefeb authored by Henry Weller's avatar Henry Weller
Browse files

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

parent 7037737d
......@@ -60,14 +60,14 @@ Foam::word Foam::name
{
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();
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment