Skip to content
This repository has been archived by the owner on Nov 22, 2017. It is now read-only.

Commit

Permalink
fix typo bug
Browse files Browse the repository at this point in the history
  • Loading branch information
tjake committed Oct 10, 2011
1 parent a569dcd commit 7c06aae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lucandra/LucandraTermInfo.java
Expand Up @@ -170,7 +170,7 @@ public LucandraTermInfo(int docId, ByteBuffer bytes_)
public ByteBuffer serialize() public ByteBuffer serialize()
{ {
// flags, freq, norm, pos, numoff, off // 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); ByteBuffer r = ByteBuffer.allocate(size);


//store the initial content flags in the inital byte //store the initial content flags in the inital byte
Expand Down

0 comments on commit 7c06aae

Please sign in to comment.