Recursive function error 201
Original Reporter info from Mantis: FPCCore
-
Reporter name: FPC core team
Original Reporter info from Mantis: FPCCore
- Reporter name: FPC core team
Description:
I try to run program, that finds shortest path for knight between two positions. It fully works when compiled in BP 7.0, but doesn't work in FPC 2.0.0, it fails with 'Error 201'. Sometimes I catch impossible negative values after strict checks (f.e. :
if (i>0) and (i<9) and (j>0) and (j<9) and (len<bestlen) then
begin
tmp:=(i-1)*8+j;
...
sometime gives me negative values for &LtPos;tmp>).
I used debug and normal modes for compiler, and tried to increase heap and stack sizes - with the same result.
Additional information:
Reporter: Dmitry S. Zlygin
EMail: eolin at mail dot ru
Mantis conversion info:
- Mantis ID: 6017
- OS: Win32