Browse Source

* remove previous patch

peter 21 years ago
parent
commit
9f811b8bca
1 changed files with 7 additions and 3 deletions
  1. 7 3
      compiler/defcmp.pas

+ 7 - 3
compiler/defcmp.pas

@@ -691,9 +691,10 @@ implementation
                             eq:=te_convert_l1;
                           end;
                       end;
+                     { delphi compatible, allow explicit typecasts from
+                       ordinals to pointer. It is also used for inc(pointer,ordinal) }
                      if (eq=te_incompatible) and
-                        (cdo_explicit in cdoptions) and
-                        (def_from.size=def_to.size) then
+                        (cdo_explicit in cdoptions) then
                       begin
                         doconv:=tc_int_2_int;
                         eq:=te_convert_l1;
@@ -1301,7 +1302,10 @@ implementation
 end.
 {
   $Log$
-  Revision 1.55  2004-10-31 22:05:25  peter
+  Revision 1.56  2004-11-01 08:02:26  peter
+    * remove previous patch
+
+  Revision 1.55  2004/10/31 22:05:25  peter
     * only allow ordinal-pointer for same size
 
   Revision 1.54  2004/10/31 21:45:02  peter