From 243a20402141276e3bf983afde8b15cc5b5a000c Mon Sep 17 00:00:00 2001 From: Alexander Couzens Date: Sun, 16 Jun 2019 21:53:03 +0200 Subject: [PATCH] Encoding: write_packet_ack_nack_desc_egprs: don't use a reference for rest_bits The rest_bits are never read after calling this function nor are rest_bits updated properly. Change-Id: Ic350b0365b125638a6c752f692bef981ad6b9d89 --- src/encoding.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/encoding.cpp b/src/encoding.cpp index a290c65e..d253dacf 100644 --- a/src/encoding.cpp +++ b/src/encoding.cpp @@ -830,7 +830,7 @@ static void write_packet_uplink_ack_gprs( static void write_packet_ack_nack_desc_egprs( bitvec * dest, unsigned& wp, - gprs_rlc_ul_window *window, bool is_final, unsigned& rest_bits) + gprs_rlc_ul_window *window, bool is_final, unsigned rest_bits) { unsigned int urbb_len = 0; uint8_t crbb_len = 0;