make the code more consistent across AddAtStart and AddAtEnd
authorMathieu Lacage <mathieu.lacage@sophia.inria.fr>
Wed, 23 Apr 2008 09:05:18 -0700
changeset 3031 c34e9d31a75d
parent 3030 7cfe0542dff5
child 3032 77a8e808c341
make the code more consistent across AddAtStart and AddAtEnd
src/common/buffer.cc
--- a/src/common/buffer.cc	Wed Apr 23 08:54:29 2008 -0700
+++ b/src/common/buffer.cc	Wed Apr 23 09:05:18 2008 -0700
@@ -418,7 +418,7 @@
       m_zeroAreaStart += delta;
       m_zeroAreaEnd += delta;
       m_end += delta;
-      m_start = 0;
+      m_start += delta;
 
       m_end += end;