We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 306fa9c commit 0911f0aCopy full SHA for 0911f0a
Common/CompactLookup.h
@@ -136,7 +136,7 @@ namespace cifti
136
return m_chunks[high - 1].elements[index - m_chunks[high - 1].start];
137
}
138
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
139
- 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
140
if (attach_low)
141
{
142
std::vector<T>& lowvec = m_chunks[high - 1].elements;
0 commit comments