Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 87161 invoked from network); 23 Apr 2007 15:15:39 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 23 Apr 2007 15:15:39 -0000 Received: (qmail 73737 invoked by uid 500); 23 Apr 2007 15:15:46 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 73719 invoked by uid 500); 23 Apr 2007 15:15:45 -0000 Mailing-List: contact commits-help@harmony.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@harmony.apache.org Delivered-To: mailing list commits@harmony.apache.org Received: (qmail 73710 invoked by uid 99); 23 Apr 2007 15:15:45 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 23 Apr 2007 08:15:45 -0700 X-ASF-Spam-Status: No, hits=-99.5 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO eris.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 23 Apr 2007 08:15:38 -0700 Received: by eris.apache.org (Postfix, from userid 65534) id 390291A9838; Mon, 23 Apr 2007 08:15:18 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r531497 - /harmony/enhanced/classlib/trunk/modules/portlib/src/main/native/port/shared/hystr.c Date: Mon, 23 Apr 2007 15:15:16 -0000 To: commits@harmony.apache.org From: tellison@apache.org X-Mailer: svnmailer-1.1.0 Message-Id: <20070423151518.390291A9838@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: tellison Date: Mon Apr 23 08:15:13 2007 New Revision: 531497 URL: http://svn.apache.org/viewvc?view=rev&rev=531497 Log: Backing out changes made in r531409, patch for HARMONY-654([classlib][luni] File.mkdir does not support unicode) with modifications Modified: harmony/enhanced/classlib/trunk/modules/portlib/src/main/native/port/shared/hystr.c Modified: harmony/enhanced/classlib/trunk/modules/portlib/src/main/native/port/shared/hystr.c URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/portlib/src/main/native/port/shared/hystr.c?view=diff&rev=531497&r1=531496&r2=531497 ============================================================================== --- harmony/enhanced/classlib/trunk/modules/portlib/src/main/native/port/shared/hystr.c (original) +++ harmony/enhanced/classlib/trunk/modules/portlib/src/main/native/port/shared/hystr.c Mon Apr 23 08:15:13 2007 @@ -589,12 +589,12 @@ writeIntToBuffer (char *buf, U_32 bufLen, U_64 width, U_64 precision, U_64 value, U_8 tag, int isSigned, const char *digits) { - I_32 index = 0; - I_32 length = 0; + U_32 index = 0; + U_32 length = 0; I_32 rightSpace = 0; - I_64 temp; + U_64 temp; int base = strlen (digits); - I_32 actualPrecision = 0; + U_32 actualPrecision = 0; char signChar = 0; if (isSigned) @@ -614,7 +614,7 @@ signChar = '-'; value = (U_64) (signedValue * -1); } - else if (tag & HYFFLAG_PLUS) + else if (signedValue >= 0 && (tag & HYFFLAG_PLUS)) { signChar = '+'; }