diff options
author | Nick Mathewson <nickm@torproject.org> | 2008-02-21 21:15:31 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2008-02-21 21:15:31 +0000 |
commit | daefbfe691fdc1856fd7ff91e50cd3600140359b (patch) | |
tree | 2daf6085e1b86c80f138fef4ef8df244448d5b8e /src/or/rephist.c | |
parent | e790dbe779de620bdb0b2f52d4d04ce84bb7c5a8 (diff) | |
download | tor-daefbfe691fdc1856fd7ff91e50cd3600140359b.tar.gz tor-daefbfe691fdc1856fd7ff91e50cd3600140359b.zip |
r14371@tombo: nickm | 2008-02-21 16:13:18 -0500
Fix all -Wshorten-64-to-32 warnings that appear on my macbook.
svn:r13662
Diffstat (limited to 'src/or/rephist.c')
-rw-r--r-- | src/or/rephist.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/or/rephist.c b/src/or/rephist.c index f431c81228..c7d44743e0 100644 --- a/src/or/rephist.c +++ b/src/or/rephist.c @@ -361,8 +361,9 @@ rep_hist_downrate_old_runs(time_t now) (unsigned long)(hist->weighted_run_length * alpha); hist->total_run_weights *= alpha; - hist->weighted_uptime *= alpha; - hist->total_weighted_time *= alpha; + hist->weighted_uptime = (unsigned long)(hist->weighted_uptime * alpha); + hist->total_weighted_time = (unsigned long) + (hist->total_weighted_time * alpha); } return stability_last_downrated + STABILITY_INTERVAL; |