summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/or/entrynodes.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/entrynodes.c b/src/or/entrynodes.c
index 9b838b5b2a..30108b6041 100644
--- a/src/or/entrynodes.c
+++ b/src/or/entrynodes.c
@@ -1751,7 +1751,7 @@ guard_get_guardfraction_bandwidth(guardfraction_bandwidth_t *guardfraction_bw,
guardfraction_bw->guard_bw = (int) guard_bw;
- guardfraction_bw->non_guard_bw = orig_bandwidth - guard_bw;
+ guardfraction_bw->non_guard_bw = orig_bandwidth - (int) guard_bw;
}
/** A list of configured bridges. Whenever we actually get a descriptor