Browse Source

* also handle tc_int_2_int,tc_int_2_bool,tc_bool_2_int in
target_specific_general_typeconv() for enum type conversions

git-svn-id: branches/jvmbackend@18628 -

Jonas Maebe 14 years ago
parent
commit
460c7a519b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      compiler/jvm/njvmcnv.pas

+ 1 - 1
compiler/jvm/njvmcnv.pas

@@ -664,7 +664,7 @@ implementation
         toarrtype: char;
         toarrtype: char;
       begin
       begin
         resnode:=nil;
         resnode:=nil;
-        if convtype<>tc_equal then
+        if not(convtype in [tc_equal,tc_int_2_int,tc_int_2_bool,tc_bool_2_int]) then
           begin
           begin
             result:=false;
             result:=false;
             exit
             exit