commit | 064a1e0c5444f76d53895022041c0034f649a73e | [log] [tgz] |
---|---|---|
author | Vadim Yanitskiy <axilirator@gmail.com> | Sat Jan 25 06:25:12 2020 +0700 |
committer | fixeria <axilirator@gmail.com> | Mon Jan 27 18:21:08 2020 +0000 |
tree | 2106a8560ba982594af1a3256bbb77491b25d7d7 | |
parent | 601af0ca0090eb19cbed4f44d8311991c8b0c903 [diff] |
msc/sccp_ran.h: fix: do not pass -1 to osmo_rat_type_name() The problem is that osmo_rat_type_name() calls get_value_string(), so we first cast -1 to 'const enum osmo_rat_type' and then to 'uint32_t'. Let's rather use OSMO_RAT_UNKNOWN. Found by GCC with -Wextra in CFLAGS: warning: operand of ?: changes signedness from ‘int’ to ‘const enum osmo_rat_type’ due to unsignedness of other operand [-Wsign-compare] Change-Id: I63ba355102d3cc035ba90121e06aba7cf1776aa0