From 5b61dd04570c93ec6663f5893951c312b95f58f9 Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Tue, 3 Aug 2004 23:57:05 +0000 Subject: Fix all warnings on win32 build svn:r2127 --- src/or/rephist.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/or/rephist.c') 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; } -- cgit v1.2.3-54-g00ecf