Преглед на файлове

net/protocol/protocal_address: minor calculation fix

aggstam преди 2 години
родител
ревизия
af7c280dd3
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      src/net/protocol/protocol_address.rs

+ 1 - 1
src/net/protocol/protocol_address.rs

@@ -136,7 +136,7 @@ impl ProtocolAddress {
 
             // Then we grab addresses without the requested transports
             // to fill a 2 * max length vector.
-            let remain = 2 * get_addrs_msg.max - addrs.len();
+            let remain = 2 * get_addrs_msg.max - addrs.len() as u32;
             addrs.append(
                 &mut self
                     .hosts