mirror of
https://github.com/jkcoxson/idevice.git
synced 2026-03-02 14:36:16 +01:00
Fix failure to compile to 32-bit (#49)
This commit is contained in:
@@ -140,7 +140,7 @@ crate::impl_to_structs!(InnerFileDescriptor<'_>, OwnedInnerFileDescriptor; {
|
|||||||
let mut collected_bytes = Vec::with_capacity(n);
|
let mut collected_bytes = Vec::with_capacity(n);
|
||||||
|
|
||||||
for chunk in chunk_number(n, MAX_TRANSFER as usize) {
|
for chunk in chunk_number(n, MAX_TRANSFER as usize) {
|
||||||
let header_payload = [self.fd.to_le_bytes(), chunk.to_le_bytes()].concat();
|
let header_payload = [self.fd.to_le_bytes(), (chunk as u64).to_le_bytes()].concat();
|
||||||
let res = self
|
let res = self
|
||||||
.as_mut()
|
.as_mut()
|
||||||
.send_packet(AfcOpcode::Read, header_payload, Vec::new())
|
.send_packet(AfcOpcode::Read, header_payload, Vec::new())
|
||||||
|
|||||||
Reference in New Issue
Block a user