瀏覽代碼

* 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 年之前
父節點
當前提交
460c7a519b
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      compiler/jvm/njvmcnv.pas

+ 1 - 1
compiler/jvm/njvmcnv.pas

@@ -664,7 +664,7 @@ implementation
         toarrtype: char;
       begin
         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
             result:=false;
             exit