Fix failure to compile to 32-bit (#49)

This commit is contained in:
alexytomi
2025-12-22 00:20:24 +08:00
committed by GitHub
parent ae5071a309
commit d8bff83753

View File

@@ -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())