[clang-tidy] Enclose macro arguments in ()

Found with bugprone-macro-parentheses

Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
Rosen Penev 2019-11-25 17:20:16 -08:00 committed by ridiculousfish
parent 9507c3a159
commit e45ae9df49
2 changed files with 2 additions and 2 deletions

View File

@ -222,7 +222,7 @@ static int builtin_generic(parser_t &parser, io_streams_t &streams, wchar_t **ar
// How many bytes we read() at once.
// Since this is just for counting, it can be massive.
#define COUNT_CHUNK_SIZE 512 * 256
#define COUNT_CHUNK_SIZE (512 * 256)
/// Implementation of the builtin count command, used to count the number of arguments sent to it.
static int builtin_count(parser_t &parser, io_streams_t &streams, wchar_t **argv) {
UNUSED(parser);

View File

@ -47,7 +47,7 @@
#define INDENT_STEP 4u
/// The initial screen width.
#define SCREEN_WIDTH_UNINITIALIZED -1
#define SCREEN_WIDTH_UNINITIALIZED (-1)
/// A helper value for an invalid location.
#define INVALID_LOCATION (screen_data_t::cursor_t(-1, -1))