aboutsummaryrefslogtreecommitdiffstats
path: root/src/common/vty.c
diff options
context:
space:
mode:
authorVadim Yanitskiy <axilirator@gmail.com>2020-02-27 23:04:55 +0700
committerVadim Yanitskiy <axilirator@gmail.com>2020-02-27 23:35:09 +0700
commit7364ef15d90b8a06815049d8b686a3df3cdb1356 (patch)
treed0394f296b28a462fca35b66fc8f2912fdbdf0a1 /src/common/vty.c
parent24f98a0df91ee86fbd39e453d09dc4d48f928e4c (diff)
vty: fix left shift by 31 cannot be represented in type 'int'
Diffstat (limited to 'src/common/vty.c')
-rw-r--r--src/common/vty.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/vty.c b/src/common/vty.c
index 1be0ac08..c03f0d42 100644
--- a/src/common/vty.c
+++ b/src/common/vty.c
@@ -250,7 +250,7 @@ static void config_write_bts_single(struct vty *vty, struct gsm_bts *bts)
bts->agch_queue.high_level, VTY_NEWLINE);
for (i = 0; i < 32; i++) {
- if (gsmtap_sapi_mask & (1 << i)) {
+ if (gsmtap_sapi_mask & ((uint32_t) 1 << i)) {
sapi_buf = osmo_str_tolower(get_value_string(gsmtap_sapi_names, i));
vty_out(vty, " gsmtap-sapi %s%s", sapi_buf, VTY_NEWLINE);
}