Lists.inc needs comment
Original Reporter info from Mantis: Alextp
-
Reporter name: CudaText man
Original Reporter info from Mantis: Alextp
- Reporter name: CudaText man
Description:
This code is not clear, so can you add comment, describing the
logic? 256 - should be a const.
Why divide by 2, divide by 4.
// Shrink the list if appropriate
if (FCapacity > 256) and (FCount < FCapacity shr 2) then
begin
FCapacity := FCapacity shr 1;
ReallocMem(..
end;
Mantis conversion info:
- Mantis ID: 30875
- Version: 3.1.1
- Fixed in version: 3.1.1
- Fixed in revision: 34861 (#860ad254)
- Target version: 3.2.0