From 2918ecf0a273065b7b125eaf9d33dbec26217e9e Mon Sep 17 00:00:00 2001 From: Gordon Sim Date: Fri, 20 Aug 2010 07:15:53 +0000 Subject: Fix compile error on windows git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@987391 13f79535-47bb-0310-9956-ffa450edef68 --- qpid/cpp/examples/messaging/drain.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'qpid/cpp/examples') diff --git a/qpid/cpp/examples/messaging/drain.cpp b/qpid/cpp/examples/messaging/drain.cpp index 8c3abdbb14..4901fb303f 100644 --- a/qpid/cpp/examples/messaging/drain.cpp +++ b/qpid/cpp/examples/messaging/drain.cpp @@ -102,7 +102,7 @@ int main(int argc, char** argv) } std::cout << "')" << std::endl; session.acknowledge(); - if (count and ++i == count) + if (count && ++i == count) break; } receiver.close(); -- cgit v1.2.1