Download Reference Manual
The Developer's Library for D
About Wiki Forums Source Search Contact

Changeset 2211

Show
Ignore:
Timestamp:
05/14/07 15:15:04 (2 years ago)
Author:
sean
Message:

Fix for ticket #462.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/tango/core/Atomic.d

    r2112 r2211  
    666666            // NOTE: 32 bit x86 systems support 8 byte CAS, which only requires 
    667667            //       4 byte alignment, so use size_t as the align type here. 
    668             assert( atomicValueIsProperlyAligned!(size_t)( cast(size_t) &val ) ); 
     668            static if( T.sizeof > size_t.sizeof ) 
     669                assert( atomicValueIsProperlyAligned!(size_t)( cast(size_t) &val ) ); 
     670            else 
     671                assert( atomicValueIsProperlyAligned!(T)( cast(size_t) &val ) ); 
    669672        } 
    670673        body