##// END OF EJS Templates
unit-tests: Fix `cargo test` on 32-bit platforms...
Simon Sapin -
r47649:6d5a26e9 default
parent child Browse files
Show More
@@ -300,12 +300,12 b' mod tests {'
300 300 // Remaining offset bytes.
301 301 bytes.extend(&[0u8; 2]);
302 302 } else {
303 // Offset is only 6 bytes will usize is 8.
304 bytes.extend(&self.offset.to_be_bytes()[2..]);
303 // Offset stored on 48 bits (6 bytes)
304 bytes.extend(&(self.offset as u64).to_be_bytes()[2..]);
305 305 }
306 306 bytes.extend(&[0u8; 2]); // Revision flags.
307 bytes.extend(&self.compressed_len.to_be_bytes()[4..]);
308 bytes.extend(&self.uncompressed_len.to_be_bytes()[4..]);
307 bytes.extend(&(self.compressed_len as u32).to_be_bytes());
308 bytes.extend(&(self.uncompressed_len as u32).to_be_bytes());
309 309 bytes.extend(&self.base_revision.to_be_bytes());
310 310 bytes
311 311 }
General Comments 0
You need to be logged in to leave comments. Login now