소스 검색

Add more parenthesis to the definition of ARRAY_LENGTH

Nick Mathewson 9 년 전
부모
커밋
5c807f30e4
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/common/util.h

+ 1 - 1
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