Fix an implicit-narrowing warning

This commit is contained in:
Nick Mathewson 2015-02-18 09:34:15 -05:00
parent 9e6147a40c
commit 6378bcf4b9

View File

@ -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