summaryrefslogtreecommitdiff
path: root/cpp/lib
diff options
context:
space:
mode:
authorAndrew Stitcher <astitcher@apache.org>2007-02-14 16:22:38 +0000
committerAndrew Stitcher <astitcher@apache.org>2007-02-14 16:22:38 +0000
commitb4b64a31a12cfd7578baab35d5036169825b53c1 (patch)
treea9dac4bad43e395a762e0780d696abd7be5871aa /cpp/lib
parent8189a1f1f3d27d9ad7e0de50ed9e924e63d74aec (diff)
downloadqpid-python-b4b64a31a12cfd7578baab35d5036169825b53c1.tar.gz
r1127@fuschia: andrew | 2007-02-14 16:15:34 +0000
Fixed tests, and fixed an exposed bug git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/qpid.0-9@507602 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/lib')
-rw-r--r--cpp/lib/broker/AccumulatedAck.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/cpp/lib/broker/AccumulatedAck.cpp b/cpp/lib/broker/AccumulatedAck.cpp
index 2f2a7464c1..5f66adb2b9 100644
--- a/cpp/lib/broker/AccumulatedAck.cpp
+++ b/cpp/lib/broker/AccumulatedAck.cpp
@@ -18,14 +18,17 @@
* under the License.
*
*/
-#include <AccumulatedAck.h>
+#include "AccumulatedAck.h"
+
+#include <assert.h>
using std::less_equal;
using std::bind2nd;
using namespace qpid::broker;
void AccumulatedAck::update(u_int64_t firstTag, u_int64_t lastTag){
- if (firstTag-1 == range) {
+ assert(firstTag<=lastTag);
+ if (firstTag <= range+1) {
range = lastTag;
} else {
for (u_int64_t tag = firstTag; tag<=lastTag; tag++)