Skip to content

Commit

Permalink
fix bug in compact lookup that prevented merging with higher chunks
Browse files Browse the repository at this point in the history
  • Loading branch information
coalsont committed Jun 11, 2014
1 parent 306fa9c commit 0911f0a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Common/CompactLookup.h
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ namespace cifti
return m_chunks[high - 1].elements[index - m_chunks[high - 1].start];
}
if (high > 0 && m_chunks[high - 1].start + (int64_t)(m_chunks[high - 1].elements.size()) == index) attach_low = true;//index is 1 beyond the range
if (high < numChunks && m_chunks[high].start + 1 == index) attach_high = true;//index is 1 before the next range
if (high < numChunks && m_chunks[high].start == index + 1) attach_high = true;//index is 1 before the next range
if (attach_low)
{
std::vector<T>& lowvec = m_chunks[high - 1].elements;
Expand Down

0 comments on commit 0911f0a

Please sign in to comment.