Author: tabish
Date: Mon Aug  6 22:11:39 2012
New Revision: 1370043

URL: http://svn.apache.org/viewvc?rev=1370043&view=rev
Log:
Fix toOctalString

Modified:
    activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/lang/Long.cpp

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/lang/Long.cpp
URL: 
http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/lang/Long.cpp?rev=1370043&r1=1370042&r2=1370043&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/lang/Long.cpp 
(original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/lang/Long.cpp Mon 
Aug  6 22:11:39 2012
@@ -424,7 +424,7 @@ std::string Long::toOctalString( long lo
     char* buffer = new char[length + 1];
 
     do {
-        buffer[--count] = (char)( (value & 7) + '0' );
+        buffer[--count] = (char)( (uvalue & 7) + '0' );
         uvalue >>= 3;
     } while( count > 0 );
 


Reply via email to