Skip to content
Snippets Groups Projects
Commit 3102cc9b authored by Praetorius, Simon's avatar Praetorius, Simon
Browse files

AMDiS now compiles with -pedantic

parent 802e128a
No related branches found
No related tags found
No related merge requests found
......@@ -78,7 +78,7 @@ namespace AMDiS {
int nComponents = -1;
if (DataArray.attribute("NumberOfComponents"))
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!"));
string2valueList(values, valueList[i], vector_operations::num_rows(test), nComponents);
break;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment