commit | 5697b4ccfac1d94b94ae59d56ad92036f5438e60 | [log] [tgz] |
---|---|---|
author | Holger Hans Peter Freyther <holger@moiji-mobile.com> | Mon Nov 11 16:22:39 2013 +0100 |
committer | Holger Hans Peter Freyther <holger@moiji-mobile.com> | Mon Nov 11 16:22:39 2013 +0100 |
tree | 885bf771f8a0a5f74e8edf537a9f4f0c89b56c18 | |
parent | acb5427bda2b6727b96420502ac1261ae4c8d38c [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
diff --git a/src/tbf.cpp b/src/tbf.cpp index 8803e54..3c2e996 100644 --- a/src/tbf.cpp +++ b/src/tbf.cpp
@@ -244,7 +244,7 @@ { 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 */