mirror of
https://github.com/neovim/neovim.git
synced 2024-12-20 03:05:11 -07:00
fix(PVS/V564): the '|' operator is applied to bool type value
This commit is contained in:
parent
128e194f64
commit
592e4472da
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user