[tor-commits] [tor/master] Fix an implicit-narrowing warning
nickm at torproject.org
nickm at torproject.org
Wed Feb 18 14:34:19 UTC 2015
commit 6378bcf4b9039ae563d793c97f2399feaf959750
Author: Nick Mathewson <nickm at torproject.org>
Date: Wed Feb 18 09:34:15 2015 -0500
Fix an implicit-narrowing warning
---
src/or/entrynodes.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/or/entrynodes.c b/src/or/entrynodes.c
index 9b838b5..30108b6 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
More information about the tor-commits
mailing list