diff options
| author | Gordon Sim <gsim@apache.org> | 2013-05-08 15:39:24 +0000 |
|---|---|---|
| committer | Gordon Sim <gsim@apache.org> | 2013-05-08 15:39:24 +0000 |
| commit | 2c0332277def9d50e33c83ea365ea48c8fc4d932 (patch) | |
| tree | e15710ca9582158d19c956b1a58858420213fff4 /cpp/src/qpid | |
| parent | db5190ff37b497871f4c816e8688d6c24e9712e3 (diff) | |
| download | qpid-python-2c0332277def9d50e33c83ea365ea48c8fc4d932.tar.gz | |
QPID-4820: fix incorrect AMQP 0-10 typecodes
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1480327 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid')
| -rw-r--r-- | cpp/src/qpid/amqp_0_10/Codecs.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cpp/src/qpid/amqp_0_10/Codecs.cpp b/cpp/src/qpid/amqp_0_10/Codecs.cpp index a67ec0360d..ba736c87ea 100644 --- a/cpp/src/qpid/amqp_0_10/Codecs.cpp +++ b/cpp/src/qpid/amqp_0_10/Codecs.cpp @@ -102,9 +102,9 @@ Variant toVariant(boost::shared_ptr<FieldValue> in) //based on AMQP 0-10 typecode, pick most appropriate variant type switch (in->getType()) { //Fixed Width types: - case 0x01: out.setEncoding(amqp0_10_binary); - case 0x02: out = in->getIntegerValue<int8_t>(); break; - case 0x03: out = in->getIntegerValue<uint8_t>(); break; + case 0x00: out.setEncoding(amqp0_10_binary); + case 0x01: out = in->getIntegerValue<int8_t>(); break; + case 0x02: out = in->getIntegerValue<uint8_t>(); break; case 0x04: break; //TODO: iso-8859-15 char case 0x08: out = static_cast<bool>(in->getIntegerValue<uint8_t>()); break; case 0x10: out.setEncoding(amqp0_10_binary); |
