Fix compiler error due to a bug in clang9.

This commit is contained in:
faluco 2022-01-14 13:14:21 +01:00 committed by Andre Puschmann
parent d5040540fb
commit 634db621e4
1 changed files with 3 additions and 3 deletions

View File

@ -1473,7 +1473,7 @@ struct setup_release_c {
SRSASN_CODE pack(bit_ref& bref) const SRSASN_CODE pack(bit_ref& bref) const
{ {
type_.pack(bref); type_.pack(bref);
switch (type_) { switch (type_.value) {
case types::release: case types::release:
break; break;
case types::setup: case types::setup:
@ -1490,7 +1490,7 @@ struct setup_release_c {
types e; types e;
e.unpack(bref); e.unpack(bref);
set(e); set(e);
switch (type_) { switch (type_.value) {
case types::release: case types::release:
break; break;
case types::setup: case types::setup:
@ -1505,7 +1505,7 @@ struct setup_release_c {
void to_json(json_writer& j) const void to_json(json_writer& j) const
{ {
j.start_obj(); j.start_obj();
switch (type_) { switch (type_.value) {
case types::release: case types::release:
break; break;
case types::setup: case types::setup: