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 _______________________________________________ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel