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
No known key found for this signature in database
GPG Key ID: 1C980A1B657B4A4F

View File

@ -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); \