소스 검색

Fix a compilation warning on clang

Nick Mathewson 6 년 전
부모
커밋
087ace7009
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/or/connection.c

+ 1 - 1
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);
     }