You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by ta...@apache.org on 2010/03/08 15:14:05 UTC
svn commit: r920329 -
/activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/util/zip/InflaterInputStream.cpp
Author: tabish
Date: Mon Mar 8 14:14:04 2010
New Revision: 920329
URL: http://svn.apache.org/viewvc?rev=920329&view=rev
Log:
Fix a warning.
Modified:
activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/util/zip/InflaterInputStream.cpp
Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/util/zip/InflaterInputStream.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/util/zip/InflaterInputStream.cpp?rev=920329&r1=920328&r2=920329&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/util/zip/InflaterInputStream.cpp (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/util/zip/InflaterInputStream.cpp Mon Mar 8 14:14:04 2010
@@ -225,12 +225,12 @@
// It may also be true if the next read() should return -1.
try {
- int result = inflater->inflate( buffer, size, offset, length );
+ std::size_t result = inflater->inflate( buffer, size, offset, length );
atEOF = inflater->finished();
if( result > 0 ) {
- return result;
+ return (int)result;
} else if( atEOF ) {
return -1;
} else if( inflater->needsDictionary() ) {