summaryrefslogtreecommitdiff
path: root/src/or/rephist.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2004-08-03 23:57:05 +0000
committerNick Mathewson <nickm@torproject.org>2004-08-03 23:57:05 +0000
commit5b61dd04570c93ec6663f5893951c312b95f58f9 (patch)
tree4e7be06b8f2cf38ed3ad38e9cebf006f57650fdf /src/or/rephist.c
parent8cb412412127dafd88e6b6a5b39a6b897f174a7c (diff)
downloadtor-5b61dd04570c93ec6663f5893951c312b95f58f9.tar.gz
tor-5b61dd04570c93ec6663f5893951c312b95f58f9.zip
Fix all warnings on win32 build
svn:r2127
Diffstat (limited to 'src/or/rephist.c')
-rw-r--r--src/or/rephist.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/rephist.c b/src/or/rephist.c
index 0cca2097dc..1f3848b786 100644
--- a/src/or/rephist.c
+++ b/src/or/rephist.c
@@ -468,9 +468,9 @@ int rep_hist_bandwidth_assess(time_t when) {
r = find_largest_max(read_array);
w = find_largest_max(write_array);
if (r>w)
- return w/(double)NUM_SECS_ROLLING_MEASURE;
+ return (int)(w/(double)NUM_SECS_ROLLING_MEASURE);
else
- return r/(double)NUM_SECS_ROLLING_MEASURE;
+ return (int)(r/(double)NUM_SECS_ROLLING_MEASURE);
return 0;
}