From e45ae9df496b23a9421cebc0ed91fcb100df7cd2 Mon Sep 17 00:00:00 2001
From: Rosen Penev <rosenp@gmail.com>
Date: Mon, 25 Nov 2019 17:20:16 -0800
Subject: [PATCH] [clang-tidy] Enclose macro arguments in ()

Found with bugprone-macro-parentheses

Signed-off-by: Rosen Penev <rosenp@gmail.com>
---
 src/builtin.cpp | 2 +-
 src/screen.cpp  | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/builtin.cpp b/src/builtin.cpp
index d888eff51..9eca55180 100644
--- a/src/builtin.cpp
+++ b/src/builtin.cpp
@@ -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);
diff --git a/src/screen.cpp b/src/screen.cpp
index 049735fc4..ed8668fa7 100644
--- a/src/screen.cpp
+++ b/src/screen.cpp
@@ -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))