]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Add more parenthesis to the definition of ARRAY_LENGTH
authorNick Mathewson <nickm@torproject.org>
Mon, 2 Feb 2015 19:14:35 +0000 (14:14 -0500)
committerNick Mathewson <nickm@torproject.org>
Mon, 2 Feb 2015 19:14:35 +0000 (14:14 -0500)
src/common/util.h

index 175a078c6b7cf47238bd94e92ef386e67105a0ea..ea774bd9bda3a738fc7ed0e93faaa1a3d692db34 100644 (file)
@@ -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