VirtualBox
Show
Ignore:
Timestamp:
11/10/08 14:46:22 (2 months ago)
Author:
vboxsync
Message:

RT_LODWORD/RT_HIDWORD must cast the result to uint32_t.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/include/iprt/cdefs.h

    r13836 r14013  
    10031003/** @def RT_LODWORD 
    10041004 * Gets the low dword (=uint32_t) of something. */ 
    1005 #define RT_LODWORD(a)            ((a) & UINT32_C(0xffffffff)
     1005#define RT_LODWORD(a)           ( (uint32_t)(a)
    10061006 
    10071007/** @def RT_HIDWORD 
    10081008 * Gets the high dword (=uint32_t) of a 64-bit of something. */ 
    1009 #define RT_HIDWORD(a)            ((a) >> 32
     1009#define RT_HIDWORD(a)           ( (uint32_t)((a) >> 32)
    10101010 
    10111011/** @def RT_LOWORD 

© 2008 Sun Microsystems, Inc.
ContactPrivacy policy