From commits-return-19471-apmail-activemq-commits-archive=activemq.apache.org@activemq.apache.org Mon Aug 6 22:12:24 2012 Return-Path: X-Original-To: apmail-activemq-commits-archive@www.apache.org Delivered-To: apmail-activemq-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 33F48D25E for ; Mon, 6 Aug 2012 22:12:24 +0000 (UTC) Received: (qmail 92414 invoked by uid 500); 6 Aug 2012 22:12:24 -0000 Delivered-To: apmail-activemq-commits-archive@activemq.apache.org Received: (qmail 92379 invoked by uid 500); 6 Aug 2012 22:12:24 -0000 Mailing-List: contact commits-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@activemq.apache.org Delivered-To: mailing list commits@activemq.apache.org Received: (qmail 92369 invoked by uid 99); 6 Aug 2012 22:12:24 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 06 Aug 2012 22:12:24 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 06 Aug 2012 22:12:23 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id C7C7B238890B for ; Mon, 6 Aug 2012 22:11:39 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1370043 - /activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/lang/Long.cpp Date: Mon, 06 Aug 2012 22:11:39 -0000 To: commits@activemq.apache.org From: tabish@apache.org X-Mailer: svnmailer-1.0.8-patched Message-Id: <20120806221139.C7C7B238890B@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org 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 );