Procházet zdrojové kódy

nick, is this what you meant?

svn:r1740
Roger Dingledine před 21 roky
rodič
revize
47dc5cd1c8
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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__ "???"