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 16:26:45 UTC

cvs commit: xml-xerces/c/src/idom IDStringPool.cpp

tng         01/06/07 07:26:43

  Modified:    c/src/idom IDStringPool.cpp
  Log:
  IDOM: some compiler (solaris cc/hp acc)  requires memory to align, otherwise core dump.
  
  Revision  Changes    Path
  1.9       +4 -0      xml-xerces/c/src/idom/IDStringPool.cpp
  
  Index: IDStringPool.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xerces/c/src/idom/IDStringPool.cpp,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- IDStringPool.cpp	2001/06/04 20:44:15	1.8
  +++ IDStringPool.cpp	2001/06/07 14:26:36	1.9
  @@ -56,6 +56,9 @@
   
   /*
    * $Log: IDStringPool.cpp,v $
  + * Revision 1.9  2001/06/07 14:26:36  tng
  + * IDOM: some compiler (solaris cc/hp acc)  requires memory to align, otherwise core dump.
  + *
    * Revision 1.8  2001/06/04 20:44:15  tng
    * IDOM: Comment should say XMLCh instead of DOMString
    *
  @@ -120,6 +123,7 @@
       //       struct, so we don't need to add one again to account for the trailing null.
       //
       size_t sizeToAllocate = sizeof(IDStringPoolEntry) + XMLString::stringLen(str)*sizeof(XMLCh);
  +    sizeToAllocate = (sizeToAllocate % 4) + sizeToAllocate;
       IDStringPoolEntry *newSPE = (IDStringPoolEntry *)doc->allocate(sizeToAllocate);
       newSPE->fNext = 0;
       XMLCh * nonConstStr = (XMLCh *)newSPE->fString;
  
  
  

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