fix(PVS/V564): the '|' operator is applied to bool type value

This commit is contained in:
dundargoc 2023-11-11 11:10:45 +01:00 committed by dundargoc
parent 128e194f64
commit 592e4472da

View File

@ -77,7 +77,7 @@ static void mpack_uint(char **buf, uint32_t val)
static void mpack_bool(char **buf, bool val)
{
mpack_w(buf, 0xc2 | val);
mpack_w(buf, 0xc2 | (val ? 1 : 0));
}
static void mpack_array(char **buf, uint32_t len)