VirtualBox

Ignore:
Timestamp:
Jul 12, 2018 9:06:33 PM (7 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
123672
Message:

*: Made RT_UOFFSETOF, RT_OFFSETOF, RT_UOFFSETOF_ADD and RT_OFFSETOF_ADD work like builtin_offsetof() and require compile time resolvable requests, adding RT_UOFFSETOF_DYN for the dynamic questions that can only be answered at runtime.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMR3/CSAM.cpp

    r70953 r73097  
    481481     * Assert alignment and sizes.
    482482     */
    483     AssertRelease(!(RT_OFFSETOF(VM, csam.s) & 31));
     483    AssertRelease(!(RT_UOFFSETOF(VM, csam.s) & 31));
    484484    AssertRelease(sizeof(pVM->csam.s) <= sizeof(pVM->csam.padding));
    485485    AssertRelease(VM_IS_RAW_MODE_ENABLED(pVM));
     
    488488     * Setup any fixed pointers and offsets.
    489489     */
    490     pVM->csam.s.offVM = RT_OFFSETOF(VM, patm);
     490    pVM->csam.s.offVM = RT_UOFFSETOF(VM, patm);
    491491
    492492    pVM->csam.s.fGatesChecked    = false;
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