diff --git a/src/link/reader.rs b/src/link/reader.rs index 511473d..03bb4ce 100644 --- a/src/link/reader.rs +++ b/src/link/reader.rs @@ -89,7 +89,7 @@ impl MessageReader { self.length_buffer[self.read_bytes] = input; self.read_bytes += 1; if self.read_bytes >= UE_RECEIVED_FIELD_SIZE { - self.ue_received_bytes += array_of_u8_to_u16(self.length_buffer) as u64; + self.ue_received_bytes += u64::from(array_of_u8_to_u16(self.length_buffer)); self.change_state(ReadingState::Head); } }