[fpc-pascal] Hint converting to int64
Martok
listbox at martoks-place.de
Wed Sep 12 11:30:26 CEST 2018
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 makes this an expression mixing Longword and Longint, which is always
computed in Int64 and because of that causes this hint.
The thing I'm missing is the "Mixing signed expressions and longwords gives a
64bit result" hint. Is that because something detects that this was an internal
typeconvn?
--
Regards,
Martok
More information about the fpc-pascal
mailing list