VirtualBox

Changeset 14057 in vbox


Ignore:
Timestamp:
Nov 10, 2008 11:00:21 PM (16 years ago)
Author:
vboxsync
Message:

semspingpong.cpp: shut up 64-bit MSC warning.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/common/misc/semspingpong.cpp

    r12874 r14057  
    5252    do { \
    5353        AssertPtrReturn(pPP, VERR_INVALID_PARAMETER); \
    54         ASMAtomicUoReadSize(&pPP->enmSpeaker, &enmSpeaker); \
     54        AssertCompileSize(pPP->enmSpeaker, 4); \
     55        enmSpeaker = (RTPINGPONGSPEAKER)ASMAtomicUoReadU32((volatile uint32_t *)&pPP->enmSpeaker); \
    5556        AssertMsgReturn(    enmSpeaker == RTPINGPONGSPEAKER_PING \
    5657                        ||  enmSpeaker == RTPINGPONGSPEAKER_PONG \
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