harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From telli...@apache.org
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 GMT
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 = '+';
         }



Mime
View raw message