diff options
author | John Hodge <tpg@mutabah.net> | 2018-10-21 12:55:58 +0800 |
---|---|---|
committer | John Hodge <tpg@mutabah.net> | 2018-10-21 12:55:58 +0800 |
commit | ba553fd63c3f88a0eb62dbebe010e50b72fbe8b5 (patch) | |
tree | 33392d6cb9c671d8be148b3aacd7f85cdf329ecf /tools/standalone_miri/module_tree.cpp | |
parent | 4d6aa119e76862ba57acc7f99ebf68d1ee71adbd (diff) | |
download | mrust-ba553fd63c3f88a0eb62dbebe010e50b72fbe8b5.tar.gz |
Standalone MIRI - Compilation fixes for 32-bit msvc
Diffstat (limited to 'tools/standalone_miri/module_tree.cpp')
-rw-r--r-- | tools/standalone_miri/module_tree.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/standalone_miri/module_tree.cpp b/tools/standalone_miri/module_tree.cpp index eb6b6b9e..8e0a231a 100644 --- a/tools/standalone_miri/module_tree.cpp +++ b/tools/standalone_miri/module_tree.cpp @@ -156,12 +156,12 @@ bool Parser::parse_one() auto a = Allocation::new_alloc( reloc_str.size() ); //a.alloc().set_tag(); a->write_bytes(0, reloc_str.data(), reloc_str.size()); - s.val.allocation->relocations.push_back({ ofs, /*size,*/ RelocationPtr::new_alloc(::std::move(a)) }); + s.val.allocation->relocations.push_back({ static_cast<size_t>(ofs), /*size,*/ RelocationPtr::new_alloc(::std::move(a)) }); } else if( lex.next() == "::" || lex.next() == "<" ) { auto reloc_path = parse_path(); - s.val.allocation->relocations.push_back({ ofs, /*size,*/ RelocationPtr::new_fcn(reloc_path) }); + s.val.allocation->relocations.push_back({ static_cast<size_t>(ofs), /*size,*/ RelocationPtr::new_fcn(reloc_path) }); } else { |