RE: [fpc-pascal]QWord vs. function Abs

2003-08-21 Thread Lubomir . Cabla
In a file \pp\source\rtl\inc\systemh.inc dated 26.10.2002 i found (only) these declarations about ABS function: Function abs(l:Longint):Longint; Function sqr(l:Longint):Longint; Function odd(l:Longint):Boolean; Function odd(l:Cardinal):Boolean; {$ifdef int64} Function odd(l:Int64):Boolean; Functio

Re: [fpc-pascal]QWord vs. function Abs

2003-08-20 Thread Anton Tichawa
On Wednesday 20 August 2003 20:17, you wrote: > At 18:24 20-8-2003, you wrote: > >On Wednesday 20 August 2003 16:56, you wrote: > > > > > Hallo, > > > > > i'm newbie and maybe making something wrong. > > > > > > > > > > Small example for go32v2: > > > > > > > > > > var q1,q2:qword; > > > > > begin

Re: [fpc-pascal]QWord vs. function Abs

2003-08-20 Thread Peter Vreman
At 18:24 20-8-2003, you wrote: On Wednesday 20 August 2003 16:56, you wrote: > > > Hallo, > > > i'm newbie and maybe making something wrong. > > > > > > Small example for go32v2: > > > > > > var q1,q2:qword; > > > begin > > > q1:=10; > > > q2:=20; > > > writeln(Abs(q1-q2)); > > > end. > > > >

Re: [fpc-pascal]QWord vs. function Abs

2003-08-20 Thread Anton Tichawa
On Wednesday 20 August 2003 16:56, you wrote: > > > Hallo, > > > i'm newbie and maybe making something wrong. > > > > > > Small example for go32v2: > > > > > > var q1,q2:qword; > > > begin > > > q1:=10; > > > q2:=20; > > > writeln(Abs(q1-q2)); > > > end. > > > >I get runtime 215 with FPC 1.0.

Re: [fpc-pascal]QWord vs. function Abs

2003-08-20 Thread Peter Vreman
> Hallo, > i'm newbie and maybe making something wrong. > > Small example for go32v2: > > var q1,q2:qword; > begin > q1:=10; > q2:=20; > writeln(Abs(q1-q2)); > end. I get runtime 215 with FPC 1.0.6 ... This probably means that FPC cannot support qwords in the abs function even though the do

Re: [fpc-pascal]QWord vs. function Abs

2003-08-20 Thread James Mills
On Wed, Aug 20, 2003 at 02:34:23PM +0200, [EMAIL PROTECTED] wrote: > Hallo, > i'm newbie and maybe making something wrong. > > Small example for go32v2: > > var q1,q2:qword; > begin > q1:=10; > q2:=20; > writeln(Abs(q1-q2)); > end. I get runtime 215 with FPC 1.0.6 ... This probably means

[fpc-pascal]QWord vs. function Abs

2003-08-20 Thread Lubomir . Cabla
Hallo, i'm newbie and maybe making something wrong. Small example for go32v2: var q1,q2:qword; begin q1:=10; q2:=20; writeln(Abs(q1-q2)); end. With FPC compiler 1.0.10/IDE 0.9.2 i got this error message: 'Can't determine which overloaded function to call' Any idea ? With type INT64,Word