diff options
author | Nick Mathewson <nickm@torproject.org> | 2018-04-17 18:41:39 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2018-04-17 18:41:39 -0400 |
commit | 087ace7009feff4259c5a150a38734c0ded90e80 (patch) | |
tree | 0eb4570f5edfd0e3d5c9904452c11175fe4bffbb /src/or/connection.c | |
parent | 47df912f1c5a8783fb6edafc72b044ec0ae774ec (diff) | |
download | tor-087ace7009feff4259c5a150a38734c0ded90e80.tar.gz tor-087ace7009feff4259c5a150a38734c0ded90e80.zip |
Fix a compilation warning on clang
Diffstat (limited to 'src/or/connection.c')
-rw-r--r-- | src/or/connection.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/connection.c b/src/or/connection.c index 444294ee71..b1a825f80d 100644 --- a/src/or/connection.c +++ b/src/or/connection.c @@ -3034,7 +3034,7 @@ record_num_bytes_transferred_impl(connection_t *conn, if (accounting_is_enabled(get_options())) { if (now > last_recorded_accounting_at && last_recorded_accounting_at) { accounting_add_bytes(num_read, num_written, - now - last_recorded_accounting_at); + (int)(now - last_recorded_accounting_at)); } else { accounting_add_bytes(num_read, num_written, 0); } |