VirtualBox

Changeset 46180 in vbox


Ignore:
Timestamp:
May 20, 2013 9:40:43 PM (12 years ago)
Author:
vboxsync
Message:

ldrELFRelocatable.cpp.h: pointer calc warning fix for 32-bit.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/common/ldr/ldrELFRelocatable.cpp.h

    r46164 r46180  
    771771            RT_ZERO(DbgInfo.u);
    772772            DbgInfo.enmType         = RTLDRDBGINFOTYPE_DWARF_DWO;
    773             DbgInfo.pszExtFile      = (const char *)((uintptr_t)pModElf->pvBits + paShdrs[iShdr].sh_offset);
     773            DbgInfo.pszExtFile      = (const char *)((uintptr_t)pModElf->pvBits + (uintptr_t)paShdrs[iShdr].sh_offset);
    774774            if (!RTStrEnd(DbgInfo.pszExtFile, paShdrs[iShdr].sh_size))
    775775                return VERR_BAD_EXE_FORMAT;
    776             DbgInfo.u.Dwo.uCrc32    = *(uint32_t *)((uintptr_t)DbgInfo.pszExtFile + paShdrs[iShdr].sh_size - sizeof(uint32_t));
     776            DbgInfo.u.Dwo.uCrc32    = *(uint32_t *)((uintptr_t)DbgInfo.pszExtFile + (uintptr_t)paShdrs[iShdr].sh_size
     777                                                    - sizeof(uint32_t));
    777778            DbgInfo.offFile         = -1;
    778779            DbgInfo.cb              = 0;
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette