[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [tor/master] Add more parenthesis to the definition of ARRAY_LENGTH
commit 5c807f30e4890357d91cb62bbc51be55722396cd
Author: Nick Mathewson <nickm@xxxxxxxxxxxxxx>
Date: Mon Feb 2 14:14:35 2015 -0500
Add more parenthesis to the definition of ARRAY_LENGTH
---
src/common/util.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/common/util.h b/src/common/util.h
index 175a078..ea774bd 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
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits