[fpc-devel]Bug on writing value into file of byte

Martin Smat martin.smat at tiscali.cz
Sat Dec 27 14:45:56 CET 2003


Hi,
compiling this program with 1.0.10 give me error "Type mismatch".

var outf: file of byte;
begin
   assign(outf, 'test.bug');
   rewrite(outf);
   write(outf, 10); {only explicit typecasting helps: byte(10)}
   close(outf);
end.

Is this fixed in 1.9?

Martin Smat.





More information about the fpc-devel mailing list