Permalink
Browse files

fix typo bug

  • Loading branch information...
1 parent a569dcd commit 7c06aae7dbd868fbc8e14ba0b85d1ed6f9d2818a @tjake committed Oct 10, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/lucandra/LucandraTermInfo.java
@@ -170,7 +170,7 @@ public LucandraTermInfo(int docId, ByteBuffer bytes_)
public ByteBuffer serialize()
{
// flags, freq, norm, pos, numoff, off
- int size = 1 + 4 + (hasNorm ? 1 : 0) + (hasPositions ? positions.length*4 : 0) + (hasOffsets ? positions.length*4+4 : 0);
+ int size = 1 + 4 + (hasNorm ? 1 : 0) + (hasPositions ? positions.length*4 : 0) + (hasOffsets ? offsets.length*4+4 : 0);
ByteBuffer r = ByteBuffer.allocate(size);
//store the initial content flags in the inital byte

0 comments on commit 7c06aae

Please sign in to comment.