[fpc-devel] StrPos giving a access violation
Micha Nelissen
micha at neli.hopto.org
Mon Dec 12 13:57:33 CET 2005
Jonas Maebe wrote:
> It happens in more in Pascal. For example, single(longint_var) is also
> not the same as single(pointer(longint_var)) (let's assume a 32bit
> system). In the former case, the longint is convert to a floating point
> number with the same value. In the latter case, you get a floating
> point number with the same bit pattern as that original longint (which
> may be a valid or invalid floating point number, and whose value is
> almost certainly different from the longint's value, except in case of 0).
Oh, I thought always the second case happened. Apparantly not.
Micha
More information about the fpc-devel
mailing list