summaryrefslogtreecommitdiff
path: root/qpid/cpp/examples
diff options
context:
space:
mode:
authorGordon Sim <gsim@apache.org>2010-08-20 07:15:53 +0000
committerGordon Sim <gsim@apache.org>2010-08-20 07:15:53 +0000
commit2918ecf0a273065b7b125eaf9d33dbec26217e9e (patch)
tree895b661473a20484d3bbbfb2d3cbd711dd408f22 /qpid/cpp/examples
parentc74652e82c60030dd9c0ea20999b5e2bba329491 (diff)
downloadqpid-python-2918ecf0a273065b7b125eaf9d33dbec26217e9e.tar.gz
Fix compile error on windows
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@987391 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/examples')
-rw-r--r--qpid/cpp/examples/messaging/drain.cpp2
1 files changed, 1 insertions, 1 deletions
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();