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

_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to