Ignore:
Timestamp:
Oct 28, 2010, 5:41:05 PM (14 years ago)
Author:
george
Message:
  • Added: Generic Queue and Stack classes.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Generics/TemplateGenerics/Generic/ListImplementation.tpl

    r72 r73  
    118118begin
    119119  Result := 0;
    120   while (Result < FCount) and CompareMem(Addr(FItems[Result]), Addr(Item), SizeOf(TListItem)) do
     120  while (Result < FCount) and
     121  not CompareMem(Addr(FItems[Result]), Addr(Item), SizeOf(TListItem)) do
    121122    Result := Result + 1;
    122123  if Result = FCount then Result := -1;
Note: See TracChangeset for help on using the changeset viewer.