mirror of
https://github.com/aicodix/code.git
synced 2026-04-27 22:35:44 +00:00
use max value for fake parity bit to stay on the safe side
This commit is contained in:
parent
5c77e514ae
commit
584f6c0d9d
1 changed files with 2 additions and 2 deletions
|
|
@ -90,7 +90,7 @@ class LDPCDecoder
|
|||
for (int n = 0; n < num; ++n)
|
||||
par[0].v[n] = parity[j+(q-1)*M-1+n];
|
||||
} else {
|
||||
par[0].v[0] = 1;
|
||||
par[0].v[0] = 127;
|
||||
for (int n = 1; n < num; ++n)
|
||||
par[0].v[n] = parity[j+(q-1)*M-1+n];
|
||||
}
|
||||
|
|
@ -133,7 +133,7 @@ class LDPCDecoder
|
|||
for (int n = 0; n < num; ++n)
|
||||
par[0].v[n] = parity[j+(q-1)*M-1+n];
|
||||
} else {
|
||||
par[0].v[0] = 1;
|
||||
par[0].v[0] = 127;
|
||||
for (int n = 1; n < num; ++n)
|
||||
par[0].v[n] = parity[j+(q-1)*M-1+n];
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue