Fix LDPC RM number of useful iterations

This commit is contained in:
Xavier Arteaga 2021-03-26 08:03:37 +01:00 committed by Xavier Arteaga
parent 3568f633c3
commit 392a8cc1b6
2 changed files with 2 additions and 2 deletions

View File

@ -687,5 +687,5 @@ int srsran_ldpc_rm_rx_c(srsran_ldpc_rm_t* q,
}
// Return the number of useful LLR
return (int)((q->k0 + q->E) % q->Ncb);
return (int)SRSRAN_MIN(q->k0 + q->E, q->Ncb);
}

View File

@ -546,7 +546,7 @@ int main(int argc, char** argv)
lift_size,
rv,
mod_type,
Nref)) {
Nref) < 0) {
exit(-1);
}
}