Skip to content

Commit

Permalink
Fix alignment bug
Browse files Browse the repository at this point in the history
  • Loading branch information
lin-toto committed Jun 22, 2023
1 parent 610ac54 commit 199b303
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/27_decode_lic_symbolsplit/decode_lic_symbolsplit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@ int main(int argc, const char **argv) {
tasks.push_back(std::async(std::launch::async,
[i, nSplit, &dec, &latch, &completeLatch, &cdfIndices, &lutIndices, &result] {
auto symbolCount = result[i].symbolCount;
auto *myCdfIndices = new (std::align_val_t(32)) CdfLutOffsetType[symbolCount];
auto *myLutIndices = new (std::align_val_t(32)) CdfLutOffsetType[symbolCount];
auto *myCdfIndices = new (std::align_val_t(64)) CdfLutOffsetType[symbolCount];
auto *myLutIndices = new (std::align_val_t(64)) CdfLutOffsetType[symbolCount];

auto offset = result[0].symbolCount * i;
std::copy(cdfIndices.begin() + offset, cdfIndices.begin() + offset + symbolCount, myCdfIndices);
Expand Down

0 comments on commit 199b303

Please sign in to comment.