signed unsigned comparison

This commit is contained in:
mattijs
2009-03-10 13:53:09 +00:00
parent 9ec530528f
commit 0b4d8e5892

View File

@ -162,7 +162,7 @@ inline void Foam::FixedList<T, Size>::checkIndex(const label i) const
<< "attempt to access element from zero-sized list"
<< abort(FatalError);
}
else if (i < 0 || i >= Size)
else if (i < 0 || i >= label(Size))
{
FatalErrorIn("FixedList<T, Size>::checkIndex(const label)")
<< "index " << i << " out of range 0 ... " << (Size-1)