mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-16 12:24:03 +00:00
COFFObjectFile.cpp: Appease msvc in r201760.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@201769 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -383,7 +383,7 @@ error_code COFFObjectFile::initSymbolTablePtr() {
|
||||
|
||||
// Returns the file offset for the given VA.
|
||||
error_code COFFObjectFile::getVaPtr(uint32_t Addr, uintptr_t &Res) const {
|
||||
uint32_t ImageBase = PE32Header ? PE32Header->ImageBase : PE32PlusHeader->ImageBase;
|
||||
uint32_t ImageBase = PE32Header ? PE32Header->ImageBase : (uint32_t)PE32PlusHeader->ImageBase;
|
||||
return getRvaPtr(Addr - ImageBase, Res);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user