From 6217978d75d7c80f3069e5c39a85f32d744f70e1 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/qpid@987391 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/examples/messaging/drain.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cpp/examples/messaging/drain.cpp') diff --git a/cpp/examples/messaging/drain.cpp b/cpp/examples/messaging/drain.cpp index 8c3abdbb14..4901fb303f 100644 --- a/cpp/examples/messaging/drain.cpp +++ b/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