commit 592e4472da5f29edbddea3eb448e56b747044e67
parent 128e194f64b0c70f01a48d11e6b41781104f7ca3
Author: dundargoc <gocdundar@gmail.com>
Date: Sat, 11 Nov 2023 11:10:45 +0100
fix(PVS/V564): the '|' operator is applied to bool type value
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/nvim/api/ui.c b/src/nvim/api/ui.c
@@ -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)