forked from acouzens/open5gs
Don't left-shift by negative amount, which is UB according to C17
This commit is contained in:
parent
82e9016164
commit
22be888dae
|
@ -534,7 +534,7 @@ static void add_framed_route_to_trie(ogs_ipsubnet_t *route, upf_sess_t *sess)
|
|||
|
||||
for (i = 0; i <= nbits; i++) {
|
||||
int part = i / chunk_size;
|
||||
int bit = (- i - 1) % chunk_size;
|
||||
int bit = (nbits - i - 1) % chunk_size;
|
||||
|
||||
if (!*trie)
|
||||
*trie = ogs_calloc(1, sizeof(**trie));
|
||||
|
|
Loading…
Reference in New Issue