qpid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From shus...@apache.org
Subject svn commit: r1029896 - /qpid/trunk/qpid/cpp/include/qpid/framing/Uuid.h
Date Mon, 01 Nov 2010 23:51:18 GMT
Author: shuston
Date: Mon Nov  1 23:51:18 2010
New Revision: 1029896

URL: http://svn.apache.org/viewvc?rev=1029896&view=rev
Log:
Squish some "could lose data" compile warnings from MSVC.

Modified:
    qpid/trunk/qpid/cpp/include/qpid/framing/Uuid.h

Modified: qpid/trunk/qpid/cpp/include/qpid/framing/Uuid.h
URL: http://svn.apache.org/viewvc/qpid/trunk/qpid/cpp/include/qpid/framing/Uuid.h?rev=1029896&r1=1029895&r2=1029896&view=diff
==============================================================================
--- qpid/trunk/qpid/cpp/include/qpid/framing/Uuid.h (original)
+++ qpid/trunk/qpid/cpp/include/qpid/framing/Uuid.h Mon Nov  1 23:51:18 2010
@@ -67,7 +67,8 @@ struct Uuid : public boost::array<uint8_
 
     QPID_COMMON_EXTERN void encode(framing::Buffer& buf) const;
     QPID_COMMON_EXTERN void decode(framing::Buffer& buf);
-    QPID_COMMON_EXTERN uint32_t encodedSize() const { return size(); }
+    QPID_COMMON_EXTERN uint32_t encodedSize() const
+        { return static_cast<uint32_t>(size()); }
 
     /** String value in format 1b4e28ba-2fa1-11d2-883f-b9a761bde3fb. */
     QPID_COMMON_EXTERN std::string str() const;



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


Mime
View raw message