On Thursday, September 12, 2013 11:36 AM, Jürgen Hestermann 
<juergen.hesterm...@gmx.de> wrote: 
>I didn't look at the code, but usually          index = -1 means that the item 
>was not found. So maybe          AbsoluteIndex's result should actually be 
>signed? 
              
>     And how would it ever reach the value -1? 

it starts off there? i regularly set the result value to -1 before running thru 
a routine... if there is success, the result value is set to a good value 
otherwise it retains its -1 value...

>     Obviously there is no code that sets it to this value, 
>     otherwise it would not compile with Cardinal type.

that is something else altogether ;)

--
_______________________________________________
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to