harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From py...@apache.org
Subject svn commit: r531409 - /harmony/enhanced/classlib/trunk/modules/portlib/src/main/native/port/shared/hystr.c
Date Mon, 23 Apr 2007 10:07:45 GMT
Author: pyang
Date: Mon Apr 23 03:07:44 2007
New Revision: 531409

URL: http://svn.apache.org/viewvc?view=rev&rev=531409
Log:
Apply 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=531409&r1=531408&r2=531409
==============================================================================
--- 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 03:07:44 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)
 {
-  U_32 index = 0;
-  U_32 length = 0;
+  I_32 index = 0;
+  I_32 length = 0;
   I_32 rightSpace = 0;
-  U_64 temp;
+  I_64 temp;
   int base = strlen (digits);
-  U_32 actualPrecision = 0;
+  I_32 actualPrecision = 0;
   char signChar = 0;
 
   if (isSigned)
@@ -614,7 +614,7 @@
           signChar = '-';
           value = (U_64) (signedValue * -1);
         }
-      else if (signedValue >= 0 && (tag & HYFFLAG_PLUS))
+      else if (tag & HYFFLAG_PLUS)
         {
           signChar = '+';
         }



Mime
View raw message