diff options
| author | Simonas Kazlauskas <git@kazlauskas.me> | 2017-05-01 04:51:17 +0300 |
|---|---|---|
| committer | Simonas Kazlauskas <git@kazlauskas.me> | 2017-05-01 04:51:17 +0300 |
| commit | 54de2749b03e330fe747846b23e5725ff7b0f5b8 (patch) | |
| tree | e5ff37343928a3aaded1c4238a546fbbdd5c0ebb | |
| parent | 06fb4d25642a3f223db1441972dd5962085cfba1 (diff) | |
| download | rust-54de2749b03e330fe747846b23e5725ff7b0f5b8.tar.gz rust-54de2749b03e330fe747846b23e5725ff7b0f5b8.zip | |
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
| -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. |
