Change in osmo-bts[master]: vty: fix left shift by 31 cannot be represented in type 'int'

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

Vadim Yanitskiy gerrit-no-reply at lists.osmocom.org
Thu Feb 27 16:05:24 UTC 2020


Vadim Yanitskiy has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-bts/+/17290 )


Change subject: vty: fix left shift by 31 cannot be represented in type 'int'
......................................................................

vty: fix left shift by 31 cannot be represented in type 'int'

Change-Id: I3e5940e8f360bf6563f4c1b5ebd09579f9108c81
---
M src/common/vty.c
1 file changed, 1 insertion(+), 1 deletion(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-bts refs/changes/90/17290/1

diff --git a/src/common/vty.c b/src/common/vty.c
index 1be0ac0..8843da5 100644
--- a/src/common/vty.c
+++ b/src/common/vty.c
@@ -250,7 +250,7 @@
 			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);
 		}

-- 
To view, visit https://gerrit.osmocom.org/c/osmo-bts/+/17290
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-bts
Gerrit-Branch: master
Gerrit-Change-Id: I3e5940e8f360bf6563f4c1b5ebd09579f9108c81
Gerrit-Change-Number: 17290
Gerrit-PatchSet: 1
Gerrit-Owner: Vadim Yanitskiy <axilirator at gmail.com>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20200227/8618125d/attachment.htm>


More information about the gerrit-log mailing list