aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Couzens <lynxis@fe80.eu>2019-06-16 16:24:36 +0200
committerAlexander Couzens <lynxis@fe80.eu>2019-06-16 16:24:36 +0200
commita5e26892df3f3248803f882775a94995c7426e26 (patch)
treea64c36b356f8b9ed5471580aa35db800fcb155a8
parentafe9d4ea3c46b040b90dd3a64eb1ed7d47951600 (diff)
rlc: replace int with uint16_t
The i value will only count forward and is limited to 11 bit. The integer is also converted when returning to uint16_t Change-Id: Ib8a9081bbcb8b4344498254c58941002d17f9381
-rw-r--r--src/rlc.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rlc.cpp b/src/rlc.cpp
index e5067c9d..c6d43304 100644
--- a/src/rlc.cpp
+++ b/src/rlc.cpp
@@ -91,7 +91,7 @@ int gprs_rlc_dl_window::mark_for_resend()
/* Update the receive block bitmap */
uint16_t gprs_rlc_ul_window::update_egprs_rbb(uint8_t *rbb)
{
- int i;
+ uint16_t i;
uint16_t bsn;
uint16_t bitmask = 0x80;
int8_t pos = 0;