Browse Source

nick, is this what you meant?

svn:r1740
Roger Dingledine 20 years ago
parent
commit
47dc5cd1c8
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/common/util.h

+ 1 - 1
src/common/util.h

@@ -36,7 +36,7 @@
 #define strncasecmp strnicmp
 #define strcasecmp stricmp
 #define INLINE __inline
-#define _ARRAYSIZE(x) (((x)==0)?1:0)
+#define _ARRAYSIZE(x) (((x)==0)?1:(x))
 /* Windows compilers before VC7 don't have __FUNCTION__. */
 #if _MSC_VER < 1300
 #define __FUNCTION__ "???"