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

Changeset 3942

Show
Ignore:
Timestamp:
09/21/08 14:00:25 (2 months ago)
Author:
kris
Message:

fixes #1286 :: tango.util.container.LinkedList?.removeAt() is removing the hole tail after the index

With thanks to mbach

Files:

Legend:

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

    r3873 r3942  
    607607                   { 
    608608                   auto p = cellAt (index - 1); 
    609                    decrement (p.next)
     609                   auto t = p.next
    610610                   p.detachNext; 
     611                   decrement (t); 
    611612                   } 
    612613                return this;