From 5697b4ccfac1d94b94ae59d56ad92036f5438e60 Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Mon, 11 Nov 2013 16:22:39 +0100 Subject: 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 --- src/tbf.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 */ -- cgit v1.2.3