summaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2015-02-02 14:14:35 -0500
committerNick Mathewson <nickm@torproject.org>2015-02-02 14:14:35 -0500
commit5c807f30e4890357d91cb62bbc51be55722396cd (patch)
tree9758c639a2f23d7457c36c19b05fb5faa054d83c /src/common
parent03563f47230d84aa492c32214b2b9da68bef27ea (diff)
downloadtor-5c807f30e4890357d91cb62bbc51be55722396cd.tar.gz
tor-5c807f30e4890357d91cb62bbc51be55722396cd.zip
Add more parenthesis to the definition of ARRAY_LENGTH
Diffstat (limited to 'src/common')
-rw-r--r--src/common/util.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/util.h b/src/common/util.h
index 175a078c6b..ea774bd9bd 100644
--- a/src/common/util.h
+++ b/src/common/util.h
@@ -565,7 +565,7 @@ STATIC int format_helper_exit_status(unsigned char child_state,
const char *libor_get_digests(void);
-#define ARRAY_LENGTH(x) (sizeof(x)) / sizeof(x[0])
+#define ARRAY_LENGTH(x) ((sizeof(x)) / sizeof(x[0]))
#endif