Commit 0b4d8e58 authored by mattijs's avatar mattijs
Browse files

signed unsigned comparison

parent 9ec53052
......@@ -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)
......
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