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 aa61ec4 commit d044b11Copy full SHA for d044b11
src/lib/core/t2/PacketIter.h
@@ -98,13 +98,12 @@ struct LayerIncludeBuffers
98
if(chunks.find(chunkIndex) == chunks.end())
99
chunks[chunkIndex] =
100
new uint8_t[GRK_INCLUDE_TRACKER_CHUNK_SIZE](); // Allocate chunk lazily
101
-
102
auto include = chunks[chunkIndex] + chunkOffset;
103
uint8_t bit = (bitIndex & 7);
104
- uint8_t val = include[byteIndex];
+ uint8_t val = *include;
105
if(((val >> bit) & 1) == 0)
106
{
107
- include[byteIndex] = (uint8_t)(val | (1 << bit));
+ *include = (uint8_t)(val | (1 << bit));
108
return true;
109
}
110
0 commit comments