diff options
author | Neels Hofmeyr <neels@hofmeyr.de> | 2018-03-26 23:24:14 +0200 |
---|---|---|
committer | Neels Hofmeyr <neels@hofmeyr.de> | 2018-03-26 23:24:16 +0200 |
commit | 8b4bd46b9503fe5d2ec58d1cfcb17330e2cdd794 (patch) | |
tree | 3570c657b33a0bee9642f031db863e7a139a258d /src | |
parent | 74906224caef4df4eb412aac592ceb5348253189 (diff) |
mslot_class: find_free_tfi(): use uint32_t to shift 1 << 31
Avoid runtime error seen on jenkins admin-deb9build slave, when building
osmo-pcu with_dsp=None,with_vty=False, during ts_alloc and tbf regression
tests:
+../../../src/mslot_class.c:242:22: runtime error: left shift of 1 by 31 places cannot be represented in type 'int'
The master-osmo-pcu breaks on this since moving to a debian9 build slave.
Change-Id: I0cdf10e5fbc1173a7a09bd4fed8a66d06f80aeb1
Diffstat (limited to 'src')
-rw-r--r-- | src/mslot_class.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mslot_class.c b/src/mslot_class.c index 2a482f18..9d54afee 100644 --- a/src/mslot_class.c +++ b/src/mslot_class.c @@ -239,7 +239,7 @@ int8_t find_free_tfi(uint32_t tfi_map) return -1; for (tfi = 0; tfi < 32; tfi++) { - if (!(tfi_map & (1 << tfi))) + if (!(tfi_map & (((uint32_t)1) << tfi))) return tfi; } |