]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
nick, is this what you meant?
authorRoger Dingledine <arma@torproject.org>
Wed, 28 Apr 2004 20:18:22 +0000 (20:18 +0000)
committerRoger Dingledine <arma@torproject.org>
Wed, 28 Apr 2004 20:18:22 +0000 (20:18 +0000)
svn:r1740

src/common/util.h

index dcfe7a94dc5d1400102675ad27f1386a3baafad8..742ca9f37b710f044a69aa418fa99edac5d90562 100644 (file)
@@ -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__ "???"