You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xalan.apache.org by dl...@locus.apache.org on 2000/08/24 18:01:49 UTC

cvs commit: xml-xalan/src/org/apache/xalan/xpath/dtm ChunkedIntArray.java

dleslie     00/08/24 09:01:48

  Modified:    src/org/apache/xalan/xpath/dtm ChunkedIntArray.java
  Log:
  writeslot addressing
  
  Revision  Changes    Path
  1.5       +3 -2      xml-xalan/src/org/apache/xalan/xpath/dtm/ChunkedIntArray.java
  
  Index: ChunkedIntArray.java
  ===================================================================
  RCS file: /home/cvs/xml-xalan/src/org/apache/xalan/xpath/dtm/ChunkedIntArray.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- ChunkedIntArray.java	2000/03/06 20:13:40	1.4
  +++ ChunkedIntArray.java	2000/08/24 16:01:48	1.5
  @@ -246,8 +246,9 @@
      */
     void writeSlot(int position, int w0, int w1, int w2, int w3)
     {
  -    int chunkpos = position >> lowbits;
  -    int slotpos = (position & lowmask) * slotsize;
  +      position *= slotsize;
  +      int chunkpos = position >> lowbits;
  +      int slotpos = (position & lowmask);
   
       // Grow if needed
       if (chunkpos > chunks.size() - 1)