aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <holger@moiji-mobile.com>2013-11-11 16:22:39 +0100
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>2013-11-11 16:22:39 +0100
commit5697b4ccfac1d94b94ae59d56ad92036f5438e60 (patch)
tree885bf771f8a0a5f74e8edf537a9f4f0c89b56c18
parentacb5427bda2b6727b96420502ac1261ae4c8d38c (diff)
tbf: Make sure that tfi is signed so we can make a < 0 check
For the failure check we need this variable to be < 0. Fixes: Coverity CID 1107941
-rw-r--r--src/tbf.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tbf.cpp b/src/tbf.cpp
index 8803e548..3c2e9960 100644
--- a/src/tbf.cpp
+++ b/src/tbf.cpp
@@ -244,7 +244,7 @@ struct gprs_rlcmac_tbf *tbf_alloc_ul(struct gprs_rlcmac_bts *bts,
{
uint8_t trx;
struct gprs_rlcmac_tbf *tbf;
- uint8_t tfi;
+ int8_t tfi; /* must be signed */
#warning "Copy and paste with tbf_new_dl_assignment"
/* create new TBF, use sme TRX as DL TBF */