fixed warning about comparison between signed and unsigned

Proposed change:
Operator::SetBCSize() and Operator::GetBCSize() should have unsigned sizes.
This commit is contained in:
Sebastian Held 2012-11-15 22:10:42 +01:00
parent 013f92ba26
commit fb542df1c3

View File

@ -65,7 +65,7 @@ bool Operator_Ext_ConductingSheet::BuildExtension()
disable_pos = false;
// disable conducting sheet model inside the boundary conditions, especially inside a pml
for (int m=0;m<3;++m)
if ((pos[m]<=(m_Op->GetBCSize(2*m))) || (pos[m]>=(numLines[m]-m_Op->GetBCSize(2*m+1)-1)))
if ((pos[m]<=(unsigned int)m_Op->GetBCSize(2*m)) || (pos[m]>=(numLines[m]-m_Op->GetBCSize(2*m+1)-1)))
disable_pos = true;
for (int n=0; n<3; ++n)