activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tab...@apache.org
Subject svn commit: r928521 - /activemq/activemq-cpp/trunk/activemq-cpp-openwire-generator/src/main/java/org/apache/activemq/openwire/tool/tests/AmqCppTestMarshallingClassesGenerator.java
Date Sun, 28 Mar 2010 23:35:59 GMT
Author: tabish
Date: Sun Mar 28 23:35:59 2010
New Revision: 928521

URL: http://svn.apache.org/viewvc?rev=928521&view=rev
Log:
fix a cast in the generator to remove a warning.

Modified:
    activemq/activemq-cpp/trunk/activemq-cpp-openwire-generator/src/main/java/org/apache/activemq/openwire/tool/tests/AmqCppTestMarshallingClassesGenerator.java

Modified: activemq/activemq-cpp/trunk/activemq-cpp-openwire-generator/src/main/java/org/apache/activemq/openwire/tool/tests/AmqCppTestMarshallingClassesGenerator.java
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp-openwire-generator/src/main/java/org/apache/activemq/openwire/tool/tests/AmqCppTestMarshallingClassesGenerator.java?rev=928521&r1=928520&r2=928521&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp-openwire-generator/src/main/java/org/apache/activemq/openwire/tool/tests/AmqCppTestMarshallingClassesGenerator.java
(original)
+++ activemq/activemq-cpp/trunk/activemq-cpp-openwire-generator/src/main/java/org/apache/activemq/openwire/tool/tests/AmqCppTestMarshallingClassesGenerator.java
Sun Mar 28 23:35:59 2010
@@ -122,7 +122,7 @@ out.println("        dataOut.writeByte( 
 out.println("        marshaller.looseMarshal( &openWireFormat, &outCommand, &dataOut
);");
 out.println("");
 out.println("        // Now read it back in and make sure it's all right.");
-out.println("        ByteArrayInputStream bais( baos.toByteArray(), baos.size() );");
+out.println("        ByteArrayInputStream bais( baos.toByteArray(), (int)baos.size() );");
 out.println("        DataInputStream dataIn( &bais );");
 out.println("        unsigned char dataType = dataIn.readByte();");
 out.println("        CPPUNIT_ASSERT( dataType == outCommand.getDataStructureType() );");
@@ -184,7 +184,7 @@ out.println("        bs.marshal( &dataOu
 out.println("        marshaller.tightMarshal2( &openWireFormat, &outCommand, &dataOut,
&bs );");
 out.println("");
 out.println("        // Now read it back in and make sure it's all right.");
-out.println("        ByteArrayInputStream bais( baos.toByteArray(), baos.size() );");
+out.println("        ByteArrayInputStream bais( baos.toByteArray(), (int)baos.size() );");
 out.println("        DataInputStream dataIn( &bais );");
 out.println("");
 out.println("        unsigned char dataType = dataIn.readByte();");



Mime
View raw message