From d139a73593cb50ee6740c1ee655749a2ea280df4 Mon Sep 17 00:00:00 2001 From: Ismael Gomez Date: Mon, 14 May 2018 14:14:55 +0200 Subject: [PATCH] Fix SIGFPE in pdsch_codeword_decode --- lib/src/phy/phch/pdsch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/phy/phch/pdsch.c b/lib/src/phy/phch/pdsch.c index 59f5bf58b..8e851ac6b 100644 --- a/lib/src/phy/phch/pdsch.c +++ b/lib/src/phy/phch/pdsch.c @@ -637,7 +637,7 @@ static int srslte_pdsch_codeword_decode(srslte_pdsch_t *q, srslte_pdsch_cfg_t *c /* Bit scrambling */ srslte_scrambling_s_offset(seq, q->e[codeword_idx], 0, nbits->nof_bits); - uint32_t qm = nbits->nof_bits/nbits->nof_re; + uint32_t qm = 0; switch(cfg->grant.mcs[tb_idx].mod) { case SRSLTE_MOD_BPSK: