You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by tn...@apache.org on 2001/06/07 23:08:24 UTC

cvs commit: xml-xerces/c/src/validators/common DFAContentModel.cpp

tng         01/06/07 14:08:23

  Modified:    c/src/validators/common DFAContentModel.cpp
  Log:
  Fix unsigned/signed warning from Linux.  By Pei Yong Zhang.
  
  Revision  Changes    Path
  1.11      +5 -2      xml-xerces/c/src/validators/common/DFAContentModel.cpp
  
  Index: DFAContentModel.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xerces/c/src/validators/common/DFAContentModel.cpp,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- DFAContentModel.cpp	2001/05/28 20:52:44	1.10
  +++ DFAContentModel.cpp	2001/06/07 21:08:20	1.11
  @@ -56,6 +56,9 @@
   
   /*
    * $Log: DFAContentModel.cpp,v $
  + * Revision 1.11  2001/06/07 21:08:20  tng
  + * Fix unsigned/signed warning from Linux.  By Pei Yong Zhang.
  + *
    * Revision 1.10  2001/05/28 20:52:44  tng
    * Schema: move static data gInvalidTrans, gEOCFakeId, gEpsilonFakeId to XMLContentModel for others to access
    *
  @@ -531,7 +534,7 @@
        * We are *assuming* that each element appears in at least one leaf.
        **/
       // don't forget to delete it
  -    unsigned int *fLeafSorter = new unsigned int[fLeafCount + fElemMapSize];
  +    int *fLeafSorter = new int[fLeafCount + fElemMapSize];
       unsigned int fSortCount = 0;
   
       for (unsigned int elemIndex = 0; elemIndex < fElemMapSize; elemIndex++)
  @@ -670,7 +673,7 @@
               } // for leafIndex
   #endif
               // Optimization(Jan, 2001)
  -            unsigned int leafIndex = fLeafSorter[sorterIndex++];
  +            int leafIndex = fLeafSorter[sorterIndex++];
   
               while (leafIndex != -1)
               {
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-cvs-help@xml.apache.org