summaryrefslogtreecommitdiff
path: root/cpp/src/Ice/OutgoingAsync.cpp
diff options
context:
space:
mode:
authorBenoit Foucher <benoit@zeroc.com>2016-02-03 17:49:40 +0100
committerBenoit Foucher <benoit@zeroc.com>2016-02-03 17:49:40 +0100
commitc3dd56233a379a03567398f36c4c1c783bef93b6 (patch)
treed76391f7478fc090badb37b1211ff34767a393c9 /cpp/src/Ice/OutgoingAsync.cpp
parentFixed C++98 compilation error in generated code (diff)
downloadice-c3dd56233a379a03567398f36c4c1c783bef93b6.tar.bz2
ice-c3dd56233a379a03567398f36c4c1c783bef93b6.tar.xz
ice-c3dd56233a379a03567398f36c4c1c783bef93b6.zip
Fixed Windows build issue
Diffstat (limited to 'cpp/src/Ice/OutgoingAsync.cpp')
-rw-r--r--cpp/src/Ice/OutgoingAsync.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/cpp/src/Ice/OutgoingAsync.cpp b/cpp/src/Ice/OutgoingAsync.cpp
index 34828d5262d..2f047822daa 100644
--- a/cpp/src/Ice/OutgoingAsync.cpp
+++ b/cpp/src/Ice/OutgoingAsync.cpp
@@ -285,7 +285,7 @@ bool
OutgoingAsyncBase::sentImpl(bool done)
{
Lock sync(_m);
- bool alreadySent = _state & Sent;
+ bool alreadySent = (_state & Sent) > 0;
_state |= Sent;
if(done)
{
@@ -429,7 +429,7 @@ bool
OutgoingAsyncBase::isCompleted() const
{
Lock sync(_m);
- return _state & Done;
+ return (_state & Done) > 0;
}
void
@@ -446,7 +446,7 @@ bool
OutgoingAsyncBase::isSent() const
{
Lock sync(_m);
- return _state & Sent;
+ return (_state & Sent) > 0;
}
void