From: Nick Mathewson Date: Mon, 2 Feb 2015 19:14:35 +0000 (-0500) Subject: Add more parenthesis to the definition of ARRAY_LENGTH X-Git-Tag: tor-0.2.6.3-alpha~86 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5c807f30e4890357d91cb62bbc51be55722396cd;p=thirdparty%2Ftor.git Add more parenthesis to the definition of ARRAY_LENGTH --- 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