diff options
| author | bors <bors@rust-lang.org> | 2017-05-01 09:48:09 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2017-05-01 09:48:09 +0000 |
| commit | 8f74f951cfca5a53921482d7b8a0e6355c10a169 (patch) | |
| tree | e5ff37343928a3aaded1c4238a546fbbdd5c0ebb | |
| parent | 06fb4d25642a3f223db1441972dd5962085cfba1 (diff) | |
| parent | 54de2749b03e330fe747846b23e5725ff7b0f5b8 (diff) | |
| download | rust-8f74f951cfca5a53921482d7b8a0e6355c10a169.tar.gz rust-8f74f951cfca5a53921482d7b8a0e6355c10a169.zip | |
Auto merge of #41666 - nagisa:try-poking-bigendian-again, r=arielb1
Try fixing bigendian metadata serialisation I compiled this on PPC to check and it seems to work, but not sure whether I didn't mess up anything in a major way. Maybe a good shot at #41443 The easiest way to *really* test this is to land the patch (a high priority would be good, since I quite literally am just twiddling my thumbs on this now), wait for nightly, and, if the nightly works, backport this to beta.
| -rw-r--r-- | src/librustc_metadata/index.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustc_metadata/index.rs b/src/librustc_metadata/index.rs index 970a401177b..ebf9910e9c9 100644 --- a/src/librustc_metadata/index.rs +++ b/src/librustc_metadata/index.rs @@ -58,7 +58,7 @@ impl Index { let pos = buf.position(); // First we write the length of the lower range ... - buf.write_all(words_to_bytes(&[self.positions[0].len() as u32])).unwrap(); + buf.write_all(words_to_bytes(&[(self.positions[0].len() as u32).to_le()])).unwrap(); // ... then the values in the lower range ... buf.write_all(words_to_bytes(&self.positions[0][..])).unwrap(); // ... then the values in the higher range. |
