]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Fix a compile warning on 64bit OS X
authorSebastian Hahn <sebastian@torproject.org>
Wed, 23 Nov 2011 00:41:37 +0000 (01:41 +0100)
committerNick Mathewson <nickm@torproject.org>
Wed, 23 Nov 2011 17:06:55 +0000 (12:06 -0500)
Backport of 68475fc5c5a806ebbb5657de1667dab2c3e09b7c which accidentally
only made it into master. Fixes bug 4547. Bug isn't in any released
version.

src/or/dirserv.c

index 19d9702a9683b562f137d138e20e67a754f2cd32..634b3eca2e2c2909e4094704ea8967972f4a442b 100644 (file)
@@ -1909,7 +1909,7 @@ dirserv_compute_performance_thresholds(routerlist_t *rl)
    * of Fast nodes. */
   if (options->AuthDirFastGuarantee &&
       fast_bandwidth > options->AuthDirFastGuarantee)
-    fast_bandwidth = options->AuthDirFastGuarantee;
+    fast_bandwidth = (uint32_t)options->AuthDirFastGuarantee;
 
   /* Now that we have a time-known that 7/8 routers are known longer than,
    * fill wfus with the wfu of every such "familiar" router. */