aboutsummaryrefslogtreecommitdiff
path: root/src/or/connection.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2018-04-13 17:00:51 -0400
committerNick Mathewson <nickm@torproject.org>2018-04-13 17:01:03 -0400
commit4b58b97c689e672d9f1e9f8c4ff606f02c577917 (patch)
treeca0508d8651ba35d9ebd5c9632c538d10d6671b9 /src/or/connection.c
parentc2f83746f4d65599bd45381c07a95c0d88181882 (diff)
downloadtor-4b58b97c689e672d9f1e9f8c4ff606f02c577917.tar.gz
tor-4b58b97c689e672d9f1e9f8c4ff606f02c577917.zip
32-bit compilation warnings
Diffstat (limited to 'src/or/connection.c')
-rw-r--r--src/or/connection.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/connection.c b/src/or/connection.c
index 20c758f57d..9573989854 100644
--- a/src/or/connection.c
+++ b/src/or/connection.c
@@ -2975,9 +2975,9 @@ global_write_bucket_low(connection_t *conn, size_t attempt, int priority)
if (priority == 1) { /* old-style v1 query */
/* Could we handle *two* of these requests within the next two seconds? */
const or_options_t *options = get_options();
- size_t can_write = smaller_bucket
+ size_t can_write = (size_t) (smaller_bucket
+ 2*(options->RelayBandwidthRate ? options->RelayBandwidthRate :
- options->BandwidthRate);
+ options->BandwidthRate));
if (can_write < 2*attempt)
return 1;
} else { /* v2 query */