From c25803718f0e3095a3c6b80feee2ccb1a9ac0dc5 Mon Sep 17 00:00:00 2001 From: Markus Blatt <mblatt@dune-project.org> Date: Wed, 13 Dec 2006 14:22:45 +0000 Subject: [PATCH] There might be now values in a row. If this is the case find will return the end iterator. Fixes flyspray #222 [[Imported from SVN: r707]] --- istl/basearray.hh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/istl/basearray.hh b/istl/basearray.hh index 13efc2f1f..c0fccd6c0 100644 --- a/istl/basearray.hh +++ b/istl/basearray.hh @@ -691,7 +691,7 @@ namespace Dune { else l = q+1; } - if (i==j[l]) + if (n && i==j[l]) return iterator(p,j,l); else return iterator(p,j,n); @@ -735,7 +735,7 @@ namespace Dune { else l = q+1; } - if (i==j[l]) + if (n && i==j[l]) return const_iterator(p,j,l); else return const_iterator(p,j,n); -- GitLab