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

Changeset 2021

Show
Ignore:
Timestamp:
04/11/07 15:32:17 (2 years ago)
Author:
sean
Message:

Fix for ticket #387.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/lib/compiler/gdc/lifetime.d

    r2020 r2021  
    786786  L1: 
    787787    *cast(size_t *)&x = newlength; 
    788     x.ptr[length * sizeelem .. newsize] = argp[0 .. sizeelem]; 
     788    x.ptr[length * sizeelem .. newsize] = (cast(byte*)argp)[0 .. sizeelem]; 
    789789    assert((cast(size_t)x.ptr & 15) == 0); 
    790790    assert(gc_sizeOf(x.ptr) > x.length * sizeelem);