Changeset 2327 for trunk/lib


Ignore:
Timestamp:
Aug 25, 2012, 11:03:26 AM (7 years ago)
Author:
cameron
Message:

Fix ptr cast

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/bitblock.hpp

    r2275 r2327  
    116116
    117117static IDISA_ALWAYS_INLINE void assert_bitblock_align(void * addr) {
    118     assert(0 == ((unsigned long long)(addr) & (sizeof(BitBlock)-1)));
     118    assert(0 == ((intptr_t)(addr) & (sizeof(BitBlock)-1)));
    119119}
    120120
    121121static IDISA_ALWAYS_INLINE void assert_bitblock_align(BitBlock v) {
    122     assert(0 == ((unsigned long long)(&v) & (sizeof(BitBlock)-1)));
     122    assert(0 == ((intptr_t)(&v) & (sizeof(BitBlock)-1)));
    123123}
    124124
Note: See TracChangeset for help on using the changeset viewer.