From a1db7fe9fe70cdd7ce353a24e723eb95dff0104c Mon Sep 17 00:00:00 2001 From: Robert Falkenberg Date: Wed, 22 Jun 2022 13:39:49 +0200 Subject: [PATCH] rlc_am_nr: fix shadowed variable --- lib/src/rlc/rlc_am_nr_packing.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/src/rlc/rlc_am_nr_packing.cc b/lib/src/rlc/rlc_am_nr_packing.cc index ea8617fa7..d5ca80e33 100644 --- a/lib/src/rlc/rlc_am_nr_packing.cc +++ b/lib/src/rlc/rlc_am_nr_packing.cc @@ -140,9 +140,9 @@ bool rlc_am_nr_status_pdu_t::trim(uint32_t max_packed_size) void rlc_am_nr_status_pdu_t::refresh_packed_size() { - uint32_t packed_size = rlc_am_nr_status_pdu_sizeof_header_ack_sn; + packed_size_ = rlc_am_nr_status_pdu_sizeof_header_ack_sn; for (auto nack : nacks_) { - packed_size += nack_size(nack); + packed_size_ += nack_size(nack); } }