summaryrefslogtreecommitdiff
path: root/src/or/rephist.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2018-07-03 10:43:43 -0400
committerNick Mathewson <nickm@torproject.org>2018-07-03 10:45:43 -0400
commitd5a3bb960d41873ccfde0bbdb4adfb762528069e (patch)
tree45e5a10184c90df512d54f49ac4b2101ed3a258c /src/or/rephist.c
parent9568c0ce3d3885a41ca44ac030b04d089ac56a40 (diff)
downloadtor-d5a3bb960d41873ccfde0bbdb4adfb762528069e.tar.gz
tor-d5a3bb960d41873ccfde0bbdb4adfb762528069e.zip
Retire U64_TO_DBL and DBL_TO_U64
These were necessary long ago to work around a bug in VC6.
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 12b0225aab..34c06760bc 100644
--- a/src/or/rephist.c
+++ b/src/or/rephist.c
@@ -1218,9 +1218,9 @@ rep_hist_bandwidth_assess(void)
r = find_largest_max(read_array);
w = find_largest_max(write_array);
if (r>w)
- return (int)(U64_TO_DBL(w)/NUM_SECS_ROLLING_MEASURE);
+ return (int)(((double)w)/NUM_SECS_ROLLING_MEASURE);
else
- return (int)(U64_TO_DBL(r)/NUM_SECS_ROLLING_MEASURE);
+ return (int)(((double)r)/NUM_SECS_ROLLING_MEASURE);
}
/** Print the bandwidth history of b (either [dir-]read_array or