summaryrefslogtreecommitdiff
path: root/cpp/src
diff options
context:
space:
mode:
authorAndrew Stitcher <astitcher@apache.org>2010-03-16 16:28:27 +0000
committerAndrew Stitcher <astitcher@apache.org>2010-03-16 16:28:27 +0000
commit24952dc43e52362d5e16a5dbd795fae7d07a12d0 (patch)
tree60a0d0b8b15e43a30f3e5f9ac519da2c88a98661 /cpp/src
parent05c39005b921fe231566a21d7f6f1aa2ce9eb905 (diff)
downloadqpid-python-24952dc43e52362d5e16a5dbd795fae7d07a12d0.tar.gz
Remove warning
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@923845 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src')
-rw-r--r--cpp/src/qpid/client/amqp0_10/Codecs.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/cpp/src/qpid/client/amqp0_10/Codecs.cpp b/cpp/src/qpid/client/amqp0_10/Codecs.cpp
index 835d80185a..e6d51ae725 100644
--- a/cpp/src/qpid/client/amqp0_10/Codecs.cpp
+++ b/cpp/src/qpid/client/amqp0_10/Codecs.cpp
@@ -129,7 +129,7 @@ Variant toVariant(boost::shared_ptr<FieldValue> in)
case 0x02: out = in->getIntegerValue<int8_t, 1>(); break;
case 0x03: out = in->getIntegerValue<uint8_t, 1>(); break;
case 0x04: break; //TODO: iso-8859-15 char
- case 0x08: out = in->getIntegerValue<bool, 1>(); break;
+ case 0x08: out = static_cast<bool>(in->getIntegerValue<uint8_t, 1>()); break;
case 0x10: out.setEncoding(amqp0_10_binary);
case 0x11: out = in->getIntegerValue<int16_t, 2>(); break;
case 0x12: out = in->getIntegerValue<uint16_t, 2>(); break;