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:03:19 UTC
cvs commit: xml-xalan/java/src/org/apache/xalan/dtm ChunkedIntArray.java
dleslie 00/08/24 09:03:19
Modified: java/src/org/apache/xalan/dtm ChunkedIntArray.java
Log:
writeslot addressing
Revision Changes Path
1.2 +3 -2 xml-xalan/java/src/org/apache/xalan/dtm/ChunkedIntArray.java
Index: ChunkedIntArray.java
===================================================================
RCS file: /home/cvs/xml-xalan/java/src/org/apache/xalan/dtm/ChunkedIntArray.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- ChunkedIntArray.java 2000/06/19 16:51:49 1.1
+++ ChunkedIntArray.java 2000/08/24 16:03:18 1.2
@@ -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)