From 9ca87ea4a459436968f07f46ee479a3397efc6ac Mon Sep 17 00:00:00 2001 From: Jakub Pawlewicz Date: Sun, 31 Jul 2011 10:59:17 +0200 Subject: [PATCH 3/3] Fixed bug in RemoveSorted --- uppsrc/Core/Algo.h | 3 --- 1 files changed, 0 insertions(+), 3 deletions(-) diff --git a/uppsrc/Core/Algo.h b/uppsrc/Core/Algo.h index edd66bc..c0ee28f 100644 --- a/uppsrc/Core/Algo.h +++ b/uppsrc/Core/Algo.h @@ -595,10 +595,7 @@ C& RemoveSorted(C& from, const C& what, const L& less) return from; typename C::Iterator fp = from.Begin() + BinFindIndex(from, *wp), fe = from.End(), fd = fp; if(fp == fe) - { - from.Clear(); return from; - } for(;;) { while(less(*fp, *wp)) -- 1.7.4.1