瀏覽代碼

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);
 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
 #endif