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

[tor-commits] [tor/master] Fix a compilation warning on clang



commit 087ace7009feff4259c5a150a38734c0ded90e80
Author: Nick Mathewson <nickm@xxxxxxxxxxxxxx>
Date:   Tue Apr 17 18:41:39 2018 -0400

    Fix a compilation warning on clang
---
 src/or/connection.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/or/connection.c b/src/or/connection.c
index 444294ee7..b1a825f80 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);
     }



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