Skip to content
Snippets Groups Projects
Commit 4f262eb3 authored by Henry Weller's avatar Henry Weller
Browse files

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

parent e5787485
Branches
Tags
No related merge requests found
......@@ -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();
}
......
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