[or-cvs] add parenthesis to U64_PRINTF_ARG macro

Nick Mathewson nickm at seul.org
Sat Jul 23 02:12:42 UTC 2005


Update of /home/or/cvsroot/tor/src/common
In directory moria:/tmp/cvs-serv16781/src/common

Modified Files:
	compat.h 
Log Message:
add parenthesis to U64_PRINTF_ARG macro

Index: compat.h
===================================================================
RCS file: /home/or/cvsroot/tor/src/common/compat.h,v
retrieving revision 1.31
retrieving revision 1.32
diff -u -d -r1.31 -r1.32
--- compat.h	18 Jun 2005 02:17:11 -0000	1.31
+++ compat.h	23 Jul 2005 02:12:40 -0000	1.32
@@ -77,7 +77,7 @@
 #define U64_FORMAT "%I64u"
 #define U64_LITERAL(n) (n ## ui64)
 #else
-#define U64_PRINTF_ARG(a) ((long long unsigned int)a)
+#define U64_PRINTF_ARG(a) ((long long unsigned int)(a))
 #define U64_SCANF_ARG(a) ((long long unsigned int*)a)
 #define U64_FORMAT "%llu"
 #define U64_LITERAL(n) (n ## llu)



More information about the tor-commits mailing list