mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
Remove extraneous parens to silence -Wparentheses-equality
In file included from ../src/nvim/eval/encode.c:974: ../src/nvim/eval/typval_encode.c.h:390:40: error: equality comparison with extraneous parentheses [-Werror,-Wparentheses-equality] do { if ((tv->vval.v_special == kSpecialVarTrue)) { msgpack_pack_true(packer); } else { msgpack_pack_false(packer); } } while (0); ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~
This commit is contained in:
parent
fc0aeb5f88
commit
02d68fbcae
@ -933,7 +933,7 @@ char *encode_tv2json(typval_T *tv, size_t *len)
|
||||
|
||||
#define TYPVAL_ENCODE_CONV_BOOL(tv, num) \
|
||||
do { \
|
||||
if ((num)) { \
|
||||
if (num) { \
|
||||
msgpack_pack_true(packer); \
|
||||
} else { \
|
||||
msgpack_pack_false(packer); \
|
||||
|
Loading…
Reference in New Issue
Block a user