author | Mathieu Lacage <mathieu.lacage@sophia.inria.fr> |
Fri, 07 Sep 2007 18:49:47 +0200 | |
changeset 1464 | 0d52ddfda61b |
parent 1463 | 0df6c4ff3c9e |
child 1465 | 752e84e2f00a |
--- a/src/common/buffer.cc Fri Sep 07 18:45:00 2007 +0200 +++ b/src/common/buffer.cc Fri Sep 07 18:49:47 2007 +0200 @@ -280,9 +280,7 @@ Buffer::Iterator::GetDistanceFrom (Iterator const &o) const { NS_ASSERT (m_data == o.m_data); - int32_t start = m_current; - int32_t end = o.m_current; - int32_t diff = end - start; + int32_t diff = m_current - o.m_current; if (diff < 0) { return -diff;