mirror of
https://github.com/aicodix/code.git
synced 2026-04-27 14:30:36 +00:00
bug fix: we need to handle the last one too
This commit is contained in:
parent
2a52a4bb59
commit
c6999ccf52
1 changed files with 3 additions and 1 deletions
|
|
@ -189,8 +189,10 @@ class LDPCDecoder
|
|||
if (!((wd[W*i+j]>>d)&1))
|
||||
bl[d] = out[d];
|
||||
for (int first = 0, c = 1; c < cnt; ++c) {
|
||||
if (lo[first].off != lo[c].off) {
|
||||
if (lo[first].off != lo[c].off || c == cnt-1) {
|
||||
int last = c - 1;
|
||||
if (c == cnt-1)
|
||||
++last;
|
||||
if (last != first) {
|
||||
int count = last - first + 1;
|
||||
wd_t mask = ((1 << count) - 1) << first;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue