From ba553fd63c3f88a0eb62dbebe010e50b72fbe8b5 Mon Sep 17 00:00:00 2001 From: John Hodge Date: Sun, 21 Oct 2018 12:55:58 +0800 Subject: Standalone MIRI - Compilation fixes for 32-bit msvc --- tools/standalone_miri/module_tree.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tools/standalone_miri/module_tree.cpp') 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(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(ofs), /*size,*/ RelocationPtr::new_fcn(reloc_path) }); } else { -- cgit v1.2.3