From 6f484b6ead485b2369eac0adde0d42ec30d12698 Mon Sep 17 00:00:00 2001 From: Mathieu Lacage Date: Fri, 17 Oct 2008 13:11:39 +0200 Subject: [PATCH] bug 349: workaround compiler bug --- src/common/tag-list.cc | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/common/tag-list.cc b/src/common/tag-list.cc index 4f8fdaf92..fac9ef020 100644 --- a/src/common/tag-list.cc +++ b/src/common/tag-list.cc @@ -72,10 +72,8 @@ TagList::Iterator::Next (void) struct Item item = Item (TagBuffer (m_current+16, m_end)); item.tid.SetUid (m_nextTid); item.size = m_nextSize; - item.start = m_nextStart; - item.end = m_nextEnd; - item.start = std::max (item.start, m_offsetStart); - item.end = std::min (item.end, m_offsetEnd); + item.start = std::max (m_nextStart, m_offsetStart); + item.end = std::min (m_nextEnd, m_offsetEnd); m_current += 4 + 4 + 4 + 4 + item.size; item.buf.TrimAtEnd (m_end - m_current); PrepareForNext ();