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:
James McCoy
2018-11-20 20:08:41 -05:00
committed by Marco Hinz
parent fc0aeb5f88
commit 02d68fbcae

View File

@@ -933,7 +933,7 @@ char *encode_tv2json(typval_T *tv, size_t *len)
#define TYPVAL_ENCODE_CONV_BOOL(tv, num) \ #define TYPVAL_ENCODE_CONV_BOOL(tv, num) \
do { \ do { \
if ((num)) { \ if (num) { \
msgpack_pack_true(packer); \ msgpack_pack_true(packer); \
} else { \ } else { \
msgpack_pack_false(packer); \ msgpack_pack_false(packer); \