mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06: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)
|
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)
|
static void mpack_array(char **buf, uint32_t len)
|
||||||
|
Loading…
Reference in New Issue
Block a user