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

Peter Vreman peter at freepascal.org
Sat Dec 27 23:19:41 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?

Fixed






More information about the fpc-devel mailing list