summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEric Wild <ewild@sysmocom.de>2019-06-19 19:39:17 +0200
committerfixeria <axilirator@gmail.com>2019-06-24 12:55:52 +0000
commit4269c4d00b80862cf6e92bf0fc5c3809fe5cac59 (patch)
tree7a2b62a3eb11cc80c4fd314bb683390956611ae6 /src
parent924d2412c4edb1dedf7a55c390ac45e249cb627f (diff)
trxcon/scheduler: fix bit shift in BSIC / TDMA FN calculation
Ubsan is unhappy about shifts into the sign bit of our implicitly promoted value. Change-Id: I4e72db1143a68064ba83668414dc3d60c0e1ad78
Diffstat (limited to 'src')
-rw-r--r--src/host/trxcon/sched_lchan_sch.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/host/trxcon/sched_lchan_sch.c b/src/host/trxcon/sched_lchan_sch.c
index e1977e1..9eed506 100644
--- a/src/host/trxcon/sched_lchan_sch.c
+++ b/src/host/trxcon/sched_lchan_sch.c
@@ -47,7 +47,7 @@ static void decode_sb(struct gsm_time *time, uint8_t *bsic, uint8_t *sb_info)
uint8_t t3p;
uint32_t sb;
- sb = (sb_info[3] << 24)
+ sb = ((uint32_t)sb_info[3] << 24)
| (sb_info[2] << 16)
| (sb_info[1] << 8)
| sb_info[0];