[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [tor/master] Fix an implicit-narrowing warning



commit 6378bcf4b9039ae563d793c97f2399feaf959750
Author: Nick Mathewson <nickm@xxxxxxxxxxxxxx>
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

_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits