Browse Source

* fixed comparing pointers on the JVM target: typecast both to JLObject rather
than to pchar, since all pointers are compatible with the former but not with
the latter

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

Jonas Maebe 14 years ago
parent
commit
b570ddf010
1 changed files with 5 additions and 0 deletions
  1. 5 0
      compiler/nadd.pas

+ 5 - 0
compiler/nadd.pas

@@ -1476,8 +1476,13 @@ implementation
                     { a voidpointer of 8 bytes). A conversion to voidpointer would be  }
                     { optimized away, since the result already was a voidpointer, so   }
                     { use a charpointer instead (JM)                                   }
+{$ifndef jvm}
                     inserttypeconv_internal(left,charpointertype);
                     inserttypeconv_internal(right,charpointertype);
+{$else jvm}
+                    inserttypeconv_internal(left,java_jlobject);
+                    inserttypeconv_internal(right,java_jlobject);
+{$endif jvm}
                  end;
                ltn,lten,gtn,gten:
                  begin