activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tab...@apache.org
Subject svn commit: r774075 - /activemq/activemq-cpp/trunk/activemq-cpp/src/test/decaf/internal/nio/ByteArrayBufferTest.cpp
Date Tue, 12 May 2009 20:45:11 GMT
Author: tabish
Date: Tue May 12 20:45:11 2009
New Revision: 774075

URL: http://svn.apache.org/viewvc?rev=774075&view=rev
Log:
Fix a GCC warning.

Modified:
    activemq/activemq-cpp/trunk/activemq-cpp/src/test/decaf/internal/nio/ByteArrayBufferTest.cpp

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/test/decaf/internal/nio/ByteArrayBufferTest.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/test/decaf/internal/nio/ByteArrayBufferTest.cpp?rev=774075&r1=774074&r2=774075&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/test/decaf/internal/nio/ByteArrayBufferTest.cpp
(original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/test/decaf/internal/nio/ByteArrayBufferTest.cpp
Tue May 12 20:45:11 2009
@@ -982,7 +982,7 @@
         testBuffer1->mark();
         testBuffer1->putLong( i + 48 );
         testBuffer1->reset();
-        CPPUNIT_ASSERT( testBuffer1->getLong() == ( i + 48 ) );
+        CPPUNIT_ASSERT( testBuffer1->getLong() == (long long)( i + 48 ) );
     }
 
     CPPUNIT_ASSERT_THROW_MESSAGE(
@@ -1010,7 +1010,7 @@
         testBuffer1->mark();
         testBuffer1->putLong( i, i + 99 );
         testBuffer1->reset();
-        CPPUNIT_ASSERT( testBuffer1->getLong( i ) == i + 99 );
+        CPPUNIT_ASSERT( testBuffer1->getLong( i ) == (long long)( i + 99 ) );
     }
 
     CPPUNIT_ASSERT_THROW_MESSAGE(



Mime
View raw message