vcl: fix bitfield truncation with clang16 06/40506/3
authorFlorin Coras <fcoras@cisco.com>
Wed, 13 Mar 2024 00:00:51 +0000 (17:00 -0700)
committerDave Barach <vpp@barachs.net>
Wed, 13 Mar 2024 17:06:32 +0000 (17:06 +0000)
commit39e7f2e650a65bac596a6fc968c9860a1496a5bf
treec30ac71c6bc5d79b3f6bdfdfddd81ed24b64e333
parente574736322733ec5a126ca01efb958570e5355eb
vcl: fix bitfield truncation with clang16

Reported by phlax while building Envoy with clang16

error: implicit truncation from 'int' to a one-bit wide bit-field
changes value from 1 to -1
[-Werror,-Wsingle-bit-bitfield-constant-conversion]

Type: fix

Signed-off-by: Florin Coras <fcoras@cisco.com>
Change-Id: Ib1b731780cf27a9498299f0424a06000dc67e81e
src/vcl/vcl_bapi.c