Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-devel / 2003-12

Bug on writing value into file of byte

2 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Martin Smat

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.

Reply by email

Peter Vreman
to Martin Smat
Show quoted text 12 lines
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

Reply by email