mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-11 10:58:23 +02:00
* make sure that int->int conversions are handled by the generic code
* handle class->interface conversions by JVM-specific code git-svn-id: branches/jvmbackend@18655 -
This commit is contained in:
parent
67ce687683
commit
625f52b7e4
@ -673,7 +673,10 @@ implementation
|
||||
toarrtype: char;
|
||||
begin
|
||||
resnode:=nil;
|
||||
if not(convtype in [tc_equal,tc_int_2_int,tc_int_2_bool,tc_bool_2_int]) then
|
||||
if not(convtype in [tc_equal,tc_int_2_int,tc_int_2_bool,tc_bool_2_int,tc_class_2_intf]) or
|
||||
((convtype in [tc_equal,tc_int_2_int,tc_bool_2_int,tc_int_2_bool]) and
|
||||
((left.resultdef.typ=orddef) and
|
||||
(resultdef.typ=orddef))) then
|
||||
begin
|
||||
result:=false;
|
||||
exit
|
||||
|
Loading…
Reference in New Issue
Block a user