mirror of
https://github.com/neovim/neovim
synced 2025-07-16 09:11:51 +00:00
fix(PVS/V564): the '|' operator is applied to bool type value
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user