[fpc-pascal]Crt unit, FreeBSD

Maarten Bekers elevator at planet.nl
Sun Oct 28 19:23:21 CET 2001


hoi Peter,

> > Another thing i found is that i get a lot of error messages that
typecasts
> > of a different size are not allowed, while the compiler runs in Delphi
> > compatibility mode.
> If you can provide samples it would be possible to look at it.
<-snip->
program test;

procedure blah(var o: byte);
begin
  o := 12;
end; { proc. blah }

var i: longint;
begin
  i := 11;
  blah(byte(i));
end.
<-snip->


Works in -So, doesnt work in -Sd.
(and i never said it was pretty, did i? :-)

groeten, Maarten.





More information about the fpc-pascal mailing list