From 0b4d8e5892ee14643b6e5b31e2cbef29490231e4 Mon Sep 17 00:00:00 2001 From: mattijs <mattijs@hunt.opencfd.co.uk> Date: Tue, 10 Mar 2009 13:53:09 +0000 Subject: [PATCH] signed unsigned comparison --- src/OpenFOAM/containers/Lists/FixedList/FixedListI.H | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/OpenFOAM/containers/Lists/FixedList/FixedListI.H b/src/OpenFOAM/containers/Lists/FixedList/FixedListI.H index 564742d491e..c3b09850f96 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) -- GitLab