[fpc-devel] enums and integer auto conversion

Den Jean Den.Jean at telenet.be
Mon Sep 10 20:03:28 CEST 2012


Hi,

As described in 
http://bugs.freepascal.org/view.php?id=22797

fpc 2.7.1 does not allow anymore to pass an enum
to a function expecting integers.

Note that there has always been a
{$MINENUMSIZE 4} in qt4.pas

Is this intended behaviour ? I really hope it is not.

I cannot define the type of the parameter
as the enumtype because the expected values
are either the enum or combinations of the enum (or)

Kind regards,

Den Jean

 



More information about the fpc-devel mailing list