diff --git a/src/OpenFOAM/containers/Lists/FixedList/FixedListI.H b/src/OpenFOAM/containers/Lists/FixedList/FixedListI.H index 564742d491ee05c9f8ee34e922fc35ee1bc20bb3..c3b09850f964a78082df6286505c06656ae4946b 100644 --- a/src/OpenFOAM/containers/Lists/FixedList/FixedListI.H +++ b/src/OpenFOAM/containers/Lists/FixedList/FixedListI.H @@ -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)