* 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:
Jonas Maebe 2011-08-20 08:21:44 +00:00
parent 67ce687683
commit 625f52b7e4

View File

@ -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