Commit 3102cc9b authored by Praetorius, Simon's avatar Praetorius, Simon
Browse files

AMDiS now compiles with -pedantic

parent 802e128a
...@@ -78,7 +78,7 @@ namespace AMDiS { ...@@ -78,7 +78,7 @@ namespace AMDiS {
int nComponents = -1; int nComponents = -1;
if (DataArray.attribute("NumberOfComponents")) if (DataArray.attribute("NumberOfComponents"))
nComponents = DataArray.attribute("NumberOfComponents").as_int(); nComponents = DataArray.attribute("NumberOfComponents").as_int();
if (nComponents != -1 && vector_operations::num_rows(test) > nComponents) if (nComponents != -1 && static_cast<int>(vector_operations::num_rows(test)) > nComponents)
throw(std::runtime_error("Can not store values in DOFVector with given value type. Too many components!")); throw(std::runtime_error("Can not store values in DOFVector with given value type. Too many components!"));
string2valueList(values, valueList[i], vector_operations::num_rows(test), nComponents); string2valueList(values, valueList[i], vector_operations::num_rows(test), nComponents);
break; break;
......
Markdown is supported
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