Fix 64-bit printf issues in consensus-bw-weights5-merge.
commiteb10d441b63c763c362dbb186b355747501e5424
authorNick Mathewson <nickm@torproject.org>
Thu, 25 Feb 2010 21:22:40 +0000 (25 16:22 -0500)
committerNick Mathewson <nickm@torproject.org>
Thu, 25 Feb 2010 21:22:40 +0000 (25 16:22 -0500)
tree1d7bd2886d883767bda13b5a376853f59686a263
parent2ab3389ed64827fee4e756e5a3ffc5ff579b1a05
Fix 64-bit printf issues in consensus-bw-weights5-merge.

For my 64-bit Linux system running with GCC 4.4.3-fc12-whatever, you
can't do 'printf("%lld", (int64_t)x);' Instead you need to tell the
compiler 'printf("%lld", (long long int)x);' or else it doesn't
believe the types match.  This is why we added U64_PRINTF_ARG; it
looks like we needed an I64_PRINTF_ARG too.
src/common/compat.h
src/or/dirvote.c
src/or/routerparse.c