activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tab...@apache.org
Subject svn commit: r553545 - /activemq/activemq-cpp/trunk/src/main/activemq/io/DataOutputStream.cpp
Date Thu, 05 Jul 2007 16:10:44 GMT
Author: tabish
Date: Thu Jul  5 09:10:43 2007
New Revision: 553545

URL: http://svn.apache.org/viewvc?view=rev&rev=553545
Log:
Get rid of a Windows Compiler warning.

Modified:
    activemq/activemq-cpp/trunk/src/main/activemq/io/DataOutputStream.cpp

Modified: activemq/activemq-cpp/trunk/src/main/activemq/io/DataOutputStream.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/src/main/activemq/io/DataOutputStream.cpp?view=diff&rev=553545&r1=553544&r2=553545
==============================================================================
--- activemq/activemq-cpp/trunk/src/main/activemq/io/DataOutputStream.cpp (original)
+++ activemq/activemq-cpp/trunk/src/main/activemq/io/DataOutputStream.cpp Thu Jul  5 09:10:43
2007
@@ -175,14 +175,14 @@
     try {
         unsigned char buffer[sizeof(value)];
 
-        buffer[0] = (value & 0xFF00000000000000ULL) >> 56;
-        buffer[1] = (value & 0x00FF000000000000ULL) >> 48;
-        buffer[2] = (value & 0x0000FF0000000000ULL) >> 40;
-        buffer[3] = (value & 0x000000FF00000000ULL) >> 32;
-        buffer[4] = (value & 0x00000000FF000000ULL) >> 24;
-        buffer[5] = (value & 0x0000000000FF0000ULL) >> 16;
-        buffer[6] = (value & 0x000000000000FF00ULL) >> 8;
-        buffer[7] = (value & 0x00000000000000FFULL) >> 0;
+        buffer[0] = (unsigned char)((value & 0xFF00000000000000ULL) >> 56);
+        buffer[1] = (unsigned char)((value & 0x00FF000000000000ULL) >> 48);
+        buffer[2] = (unsigned char)((value & 0x0000FF0000000000ULL) >> 40);
+        buffer[3] = (unsigned char)((value & 0x000000FF00000000ULL) >> 32);
+        buffer[4] = (unsigned char)((value & 0x00000000FF000000ULL) >> 24);
+        buffer[5] = (unsigned char)((value & 0x0000000000FF0000ULL) >> 16);
+        buffer[6] = (unsigned char)((value & 0x000000000000FF00ULL) >> 8);
+        buffer[7] = (unsigned char)((value & 0x00000000000000FFULL) >> 0);
 
         outputStream->write( buffer, sizeof(value) );
         written += sizeof( value );



Mime
View raw message