You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xalan.apache.org by db...@locus.apache.org on 2000/05/15 17:51:19 UTC

cvs commit: xml-xalan/c/src/PlatformSupport XalanNumberFormat.cpp

dbertoni    00/05/15 08:51:19

  Modified:    c/src/PlatformSupport XalanNumberFormat.cpp
  Log:
  Fixed signed/unsigned mismatch.
  
  Revision  Changes    Path
  1.2       +2 -2      xml-xalan/c/src/PlatformSupport/XalanNumberFormat.cpp
  
  Index: XalanNumberFormat.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xalan/c/src/PlatformSupport/XalanNumberFormat.cpp,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- XalanNumberFormat.cpp	2000/05/08 17:17:05	1.1
  +++ XalanNumberFormat.cpp	2000/05/15 15:51:19	1.2
  @@ -119,9 +119,9 @@
   {
   	if (!m_isGroupingUsed) return value;
   	if (m_groupingSize == 0) return value;
  -	int len = value.length();
  +	const unsigned int len = length(value);
   	if (len == 0) return value;
  -	
  +
   	const unsigned int	bufsize = len + len/m_groupingSize + 1;
   
   	XalanDOMChar* const		buffer = new XalanDOMChar[bufsize];