From 90645b9be8976681a2110ce40f7fb4f54b30edfa Mon Sep 17 00:00:00 2001 From: Pierre-André Jacquod Date: Mon, 3 Oct 2011 17:24:43 +0200 Subject: do not check if unsigned is less than zero in in soltools/..hastbl.cxx --- soltools/ldump/hashtbl.cxx | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'soltools') diff --git a/soltools/ldump/hashtbl.cxx b/soltools/ldump/hashtbl.cxx index 712357f3a7fe..ed17911c3992 100644 --- a/soltools/ldump/hashtbl.cxx +++ b/soltools/ldump/hashtbl.cxx @@ -405,11 +405,12 @@ void* HashTableIterator::GetNext() void* HashTableIterator::GetPrev() { - if (m_lAt <= 0) - return NULL; - - m_lAt--; - return FindValidObject(false /* backward */); + if (m_lAt) + { + --m_lAt; + return FindValidObject(false /* backward */); + } + return NULL; } void* HashTableIterator::FindValidObject(bool bForward) -- cgit