[fpc-pascal] fpc 2.3.1 doesn't allow to pass literal constants as formal const parameter
Felipe Monteiro de Carvalho
felipemonteiro.carvalho at gmail.com
Thu Mar 6 23:59:16 CET 2008
On Wed, Mar 5, 2008 at 7:29 PM, Vincent Snijders <vsnijders at quicknet.nl> wrote:
> Currently fpc 2.3.1 cannot build lazarus anymore. It fails on lines like
> MyStream.Write(' ',1);
One idea to solve this in a good way might be:
MyStream.Write(' ', SizeOf(Char));
or multiples of sizeof(char) for many characters
I just thougth about why I've never hit this before and I think it's
because I usually use sizeof to fill that field instead of using a
number.
--
Felipe Monteiro de Carvalho
More information about the fpc-pascal
mailing list