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 2008/05/01 13:03:08 UTC

svn commit: r652472 - in /activemq/activemq-cpp/trunk/src/main/decaf/nio: CharBuffer.cpp DoubleBuffer.cpp FloatBuffer.cpp IntBuffer.cpp LongBuffer.cpp ShortBuffer.cpp

Author: tabish
Date: Thu May  1 04:03:07 2008
New Revision: 652472

URL: http://svn.apache.org/viewvc?rev=652472&view=rev
Log:
http://issues.apache.org/activemq/browse/AMQCPP-103

Fixing some compiler warnings on the decaf code while re-inserting it into the amqcpp baseline.

Modified:
    activemq/activemq-cpp/trunk/src/main/decaf/nio/CharBuffer.cpp
    activemq/activemq-cpp/trunk/src/main/decaf/nio/DoubleBuffer.cpp
    activemq/activemq-cpp/trunk/src/main/decaf/nio/FloatBuffer.cpp
    activemq/activemq-cpp/trunk/src/main/decaf/nio/IntBuffer.cpp
    activemq/activemq-cpp/trunk/src/main/decaf/nio/LongBuffer.cpp
    activemq/activemq-cpp/trunk/src/main/decaf/nio/ShortBuffer.cpp

Modified: activemq/activemq-cpp/trunk/src/main/decaf/nio/CharBuffer.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/src/main/decaf/nio/CharBuffer.cpp?rev=652472&r1=652471&r2=652472&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/src/main/decaf/nio/CharBuffer.cpp (original)
+++ activemq/activemq-cpp/trunk/src/main/decaf/nio/CharBuffer.cpp Thu May  1 04:03:07 2008
@@ -428,7 +428,7 @@
         compareRemaining--;
     }
 
-    return remaining() - value.remaining();
+    return (int)( remaining() - value.remaining() );
 }
 
 ////////////////////////////////////////////////////////////////////////////////

Modified: activemq/activemq-cpp/trunk/src/main/decaf/nio/DoubleBuffer.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/src/main/decaf/nio/DoubleBuffer.cpp?rev=652472&r1=652471&r2=652472&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/src/main/decaf/nio/DoubleBuffer.cpp (original)
+++ activemq/activemq-cpp/trunk/src/main/decaf/nio/DoubleBuffer.cpp Thu May  1 04:03:07 2008
@@ -267,7 +267,7 @@
         compareRemaining--;
     }
 
-    return remaining() - value.remaining();
+    return (int)( remaining() - value.remaining() );
 }
 
 ////////////////////////////////////////////////////////////////////////////////

Modified: activemq/activemq-cpp/trunk/src/main/decaf/nio/FloatBuffer.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/src/main/decaf/nio/FloatBuffer.cpp?rev=652472&r1=652471&r2=652472&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/src/main/decaf/nio/FloatBuffer.cpp (original)
+++ activemq/activemq-cpp/trunk/src/main/decaf/nio/FloatBuffer.cpp Thu May  1 04:03:07 2008
@@ -267,7 +267,7 @@
         compareRemaining--;
     }
 
-    return remaining() - value.remaining();
+    return (int)( remaining() - value.remaining() );
 }
 
 ////////////////////////////////////////////////////////////////////////////////

Modified: activemq/activemq-cpp/trunk/src/main/decaf/nio/IntBuffer.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/src/main/decaf/nio/IntBuffer.cpp?rev=652472&r1=652471&r2=652472&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/src/main/decaf/nio/IntBuffer.cpp (original)
+++ activemq/activemq-cpp/trunk/src/main/decaf/nio/IntBuffer.cpp Thu May  1 04:03:07 2008
@@ -267,7 +267,7 @@
         compareRemaining--;
     }
 
-    return remaining() - value.remaining();
+    return (int)( remaining() - value.remaining() );
 }
 
 ////////////////////////////////////////////////////////////////////////////////

Modified: activemq/activemq-cpp/trunk/src/main/decaf/nio/LongBuffer.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/src/main/decaf/nio/LongBuffer.cpp?rev=652472&r1=652471&r2=652472&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/src/main/decaf/nio/LongBuffer.cpp (original)
+++ activemq/activemq-cpp/trunk/src/main/decaf/nio/LongBuffer.cpp Thu May  1 04:03:07 2008
@@ -267,7 +267,7 @@
         compareRemaining--;
     }
 
-    return remaining() - value.remaining();
+    return (int)( remaining() - value.remaining() );
 }
 
 ////////////////////////////////////////////////////////////////////////////////

Modified: activemq/activemq-cpp/trunk/src/main/decaf/nio/ShortBuffer.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/src/main/decaf/nio/ShortBuffer.cpp?rev=652472&r1=652471&r2=652472&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/src/main/decaf/nio/ShortBuffer.cpp (original)
+++ activemq/activemq-cpp/trunk/src/main/decaf/nio/ShortBuffer.cpp Thu May  1 04:03:07 2008
@@ -267,7 +267,7 @@
         compareRemaining--;
     }
 
-    return remaining() - value.remaining();
+    return (int)( remaining() - value.remaining() );
 }
 
 ////////////////////////////////////////////////////////////////////////////////