Re: [fpc-pascal] Hint converting to int64

2018-09-12 Thread Martok
Am 11.09.2018 um 12:11 schrieb Santiago A.: > -- var Entity:Longword;FullParagraph:string; pIni:Integer; begin > Entity:=Entity*10+ord(FullParagraph[pIni])-48; // <=== Hint end; > --- Compiling with -vp shows that the result of the subtraction is a signed Longint. That

Re: [fpc-pascal] Hint converting to int64

2018-09-11 Thread Mark Morgan Lloyd
On 11/09/18 16:15, Santiago A. wrote: El 11/09/18 a las 12:30, Mark Morgan Lloyd escribió:> On 11/09/18 10:15, Santiago A. wrote:>> Hello:FPC: 3.0.4 (Realease from Lazarus 1.8.4 SVN: 57972)OS: Windows7 >> 32bits / Linux 64Bits>> I have this code and I get a hint>> -- var  

Re: [fpc-pascal] Hint converting to int64

2018-09-11 Thread Santiago A.
El 11/09/18 a las 12:30, Mark Morgan Lloyd escribió: On 11/09/18 10:15, Santiago A. wrote: Hello:FPC: 3.0.4 (Realease from Lazarus 1.8.4 SVN: 57972)OS: Windows7 32bits / Linux 64Bits I have this code and I get a hint -- var  Entity:Longword;FullParagraph:string; pIni:Integer; begin

Re: [fpc-pascal] Hint converting to int64

2018-09-11 Thread Mark Morgan Lloyd
On 11/09/18 10:15, Santiago A. wrote: Hello:FPC: 3.0.4 (Realease from Lazarus 1.8.4 SVN: 57972)OS: Windows7 32bits / Linux 64Bits I have this code and I get a hint -- var  Entity:Longword;FullParagraph:string; pIni:Integer; begin Entity:=Entity*10+ord(FullParagraph[pIni])-48; //

[fpc-pascal] Hint converting to int64

2018-09-11 Thread Santiago A.
Hello: FPC: 3.0.4 (Realease from Lazarus 1.8.4 SVN: 57972) OS: Windows7 32bits / Linux 64Bits I have this code and I get a hint -- var  Entity:Longword;FullParagraph:string; pIni:Integer; begin Entity:=Entity*10+ord(FullParagraph[pIni])-48; // <=== Hint end; ---