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

Changeset 5664

Show
Ignore:
Timestamp:
07/20/11 22:48:48 (10 months ago)
Author:
mwarning
Message:

fixes #2064 :: Memory corruption; thanks denis-shel

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/tango/util/container/more/Vector.d

    r5499 r5664  
    193193                   --depth; 
    194194                   auto v = vector [i]; 
    195                    memmove (vector.ptr+i, vector.ptr+i+1, V.sizeof * depth-i); 
     195                   memmove (vector.ptr+i, vector.ptr+i+1, V.sizeof * (depth-i)); 
    196196                   return v; 
    197197                   }