I'm
getting a new compile time error (error: arithmetical overflow ) with this previously ok bit of code:
FOR I := -Clutter_max_width TO Clutter_max_width DO
Spectral_purity[I] := Spec_purity_level / (1 + (SQR(I) / Width_sqrd));
Spectral_purity[0] := 1;
All the variables and arrays use type
double, except i which is an integer.
The error is reported at the last code
line, but I guess it may stem from the previous line.
I don't understand why gpc should report
an arithmetic overflow error at compile-time. This is normally a run-time
error!
Any ideas?
Regards
David Wood