[fpc-pascal] type conversions

memsom at interalpha.co.uk memsom at interalpha.co.uk
Mon Dec 9 12:06:26 CET 2002

> No, a type conversion between ordinal types does not change one bit 
> pattern into another. -1 is a bit pattern that only contains 1-bits, so 
> when you convert that to an unsigned type, it still contains only 
> 1-bits and as such becomes the highest value that that unsigned type 
> can represent (65535 in case of an unsigned 16 variable).

Whatever the truth, how else does the 'list index out of bounds (0)' happen?


This message was sent using Mistral WebMail.

More information about the fpc-pascal mailing list