You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by as...@apache.org on 2010/03/16 17:28:28 UTC

svn commit: r923845 - /qpid/trunk/qpid/cpp/src/qpid/client/amqp0_10/Codecs.cpp

Author: astitcher
Date: Tue Mar 16 16:28:27 2010
New Revision: 923845

URL: http://svn.apache.org/viewvc?rev=923845&view=rev
Log:
Remove warning

Modified:
    qpid/trunk/qpid/cpp/src/qpid/client/amqp0_10/Codecs.cpp

Modified: qpid/trunk/qpid/cpp/src/qpid/client/amqp0_10/Codecs.cpp
URL: http://svn.apache.org/viewvc/qpid/trunk/qpid/cpp/src/qpid/client/amqp0_10/Codecs.cpp?rev=923845&r1=923844&r2=923845&view=diff
==============================================================================
--- qpid/trunk/qpid/cpp/src/qpid/client/amqp0_10/Codecs.cpp (original)
+++ qpid/trunk/qpid/cpp/src/qpid/client/amqp0_10/Codecs.cpp Tue Mar 16 16:28:27 2010
@@ -129,7 +129,7 @@ Variant toVariant(boost::shared_ptr<Fiel
       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;



---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:commits-subscribe@qpid.apache.org