summaryrefslogtreecommitdiff
path: root/fastboot/engine.cpp
diff options
context:
space:
mode:
authorChih-Hung Hsieh <chh@google.com>2016-06-10 10:39:35 -0700
committerChih-Hung Hsieh <chh@google.com>2016-06-22 14:33:13 -0700
commitcdb2ca5d9f4fe4c3ac1d930394f088aed5d944ac (patch)
tree782f71d0dab91d3e609d93279179b35593e77c11 /fastboot/engine.cpp
parent863d8e11b9b62388d9d00d7192b5e6f39fa089fa (diff)
Fix misc-macro-parentheses warnings in system/core.
Add parentheses around macro arguments used beside operators. Bug: 28705665 Change-Id: I9226f319e283be640eddc31687f75b51a8ef0ac6
Diffstat (limited to 'fastboot/engine.cpp')
-rw-r--r--fastboot/engine.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/fastboot/engine.cpp b/fastboot/engine.cpp
index db5d0e0b2..a245e492e 100644
--- a/fastboot/engine.cpp
+++ b/fastboot/engine.cpp
@@ -38,7 +38,7 @@
#include <sys/types.h>
#include <unistd.h>
-#define ARRAY_SIZE(x) (sizeof(x)/sizeof(x[0]))
+#define ARRAY_SIZE(x) (sizeof(x)/sizeof((x)[0]))
#define OP_DOWNLOAD 1
#define OP_COMMAND 2