Commit 63125876 authored by Jaroslava Fiedlerova's avatar Jaroslava Fiedlerova

Fix integer overflow

Avoid UBSan error:
  openair1/PHY/NR_TRANSPORT/nr_ulsch_demodulation.c:1524:41: runtime error: signed integer overflow: 737285888 + 1459370880 cannot be represented in type 'int'
parent 4980be04
......@@ -343,7 +343,7 @@ typedef struct {
/// \f$\log_2(\max|H_i|^2)\f$
int16_t log2_maxh;
/// measured RX power based on DRS
int ulsch_power[8];
uint32_t ulsch_power[8];
/// total signal over antennas
uint32_t ulsch_power_tot;
/// measured RX noise power
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment