summaryrefslogtreecommitdiff
path: root/src/or
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2007-02-01 18:09:34 +0000
committerNick Mathewson <nickm@torproject.org>2007-02-01 18:09:34 +0000
commit6f2a92c5b3b9a9f4431018f78fed3ddafc328882 (patch)
tree322d46a043709b7dda3b452c4bad485c73227736 /src/or
parent5cb99857bc0633757f60c4b964359c5a03121b28 (diff)
downloadtor-6f2a92c5b3b9a9f4431018f78fed3ddafc328882.tar.gz
tor-6f2a92c5b3b9a9f4431018f78fed3ddafc328882.zip
r11621@catbus: nickm | 2007-02-01 13:09:18 -0500
Fix another VC compiler warning. svn:r9473
Diffstat (limited to 'src/or')
-rw-r--r--src/or/routerlist.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/routerlist.c b/src/or/routerlist.c
index 46b958d9dc..132e8339be 100644
--- a/src/or/routerlist.c
+++ b/src/or/routerlist.c
@@ -971,7 +971,7 @@ smartlist_choose_by_bandwidth(smartlist_t *sl, int for_exit, int statuses)
if (!i) /* no hints; _really_ guess */
this_bw = status->is_fast ? 40000 : 20000;
else /* assume it'll be the average we've seen so far */
- this_bw = partial/i;
+ this_bw = (uint32_t)(partial/i);
}
} else {
router = smartlist_get(sl, i);