activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tab...@apache.org
Subject svn commit: r920329 - /activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/util/zip/InflaterInputStream.cpp
Date Mon, 08 Mar 2010 14:14:05 GMT
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() ) {



Mime
View raw message