Fix a warning

This commit is contained in:
Clement Jamin 2014-11-25 11:39:54 +01:00
parent c6de2a50b2
commit 8c47df9bf7
1 changed files with 5 additions and 2 deletions

View File

@ -87,8 +87,11 @@ void find_face_from_vertices( const TDS & tds,
} }
if( i > fdim ) {// the full cell |*cit| contains |face| if( i > fdim ) {// the full cell |*cit| contains |face|
face.set_full_cell(*cit); face.set_full_cell(*cit);
for( int i = 0; i <= fdim; ++i ) for( std::size_t i = 0; i <= fdim; ++i )
face.set_index(i, (*cit)->index(face_vertices[i])); {
face.set_index(static_cast<int>(i),
(*cit)->index(face_vertices[i]));
}
return; return;
} }
} }