Re: [fpc-devel] overflow error in Fpopendir

2016-06-30 Thread Seth Grover
>Best is to use either THandle or cInt, probably the former. The latter may not be defined in the system unit. > Nice catch ! > Michael. Thanks, Michael. I'll submit a bug and patch on mantis. -SG -- Seth Grover Be kind to all of your neighbors Because they're just like you. And you're nothing

Re: [fpc-devel] overflow error in Fpopendir

2016-06-30 Thread Michael Van Canneyt
On Thu, 30 Jun 2016, Seth Grover wrote: At +123 I can see that $eax/$ebx contains the correct descriptor, 51345. However, when I print $bx in the debugger, it looks like a negative number, as if it had overflowed a signed 2-byte integer, so the function errors out. This causes the file descri

[fpc-devel] overflow error in Fpopendir

2016-06-30 Thread Seth Grover
I am debugging an issue with FPC 3.0 on Linux x86_64 which I believe I have tracked down to Fpopendir rtl/linux/ossysc.inc: --- function Fpopendir(dirname : pchar): pdir; [public, alias : 'FPC_SYSC_OPENDIR']; var fd:integer; st:stat;