Address comment
This commit is contained in:
parent
ce9a02eaac
commit
a8e1da3171
1 changed files with 1 additions and 1 deletions
|
@ -603,7 +603,7 @@ pub fn create_compressed_metadata_file_for_xcoff(
|
||||||
section: SymbolSection::Section(data_section),
|
section: SymbolSection::Section(data_section),
|
||||||
flags: SymbolFlags::None,
|
flags: SymbolFlags::None,
|
||||||
});
|
});
|
||||||
let len = data.len() as u32;
|
let len: u32 = data.len().try_into().unwrap();
|
||||||
let offset = file.append_section_data(section, &len.to_be_bytes(), 1);
|
let offset = file.append_section_data(section, &len.to_be_bytes(), 1);
|
||||||
// Add a symbol referring to the rustc metadata.
|
// Add a symbol referring to the rustc metadata.
|
||||||
file.add_symbol(Symbol {
|
file.add_symbol(Symbol {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue