瀏覽代碼

* only allow ordinal-pointer for same size

peter 21 年之前
父節點
當前提交
1c0b14c9f7
共有 1 個文件被更改,包括 7 次插入2 次删除
  1. 7 2
      compiler/defcmp.pas

+ 7 - 2
compiler/defcmp.pas

@@ -691,7 +691,9 @@ implementation
                             eq:=te_convert_l1;
                           end;
                       end;
-                     if (eq=te_incompatible) and (cdo_explicit in cdoptions) then
+                     if (eq=te_incompatible) and
+                        (cdo_explicit in cdoptions) and
+                        (def_from.size=def_to.size) then
                       begin
                         doconv:=tc_int_2_int;
                         eq:=te_convert_l1;
@@ -1299,7 +1301,10 @@ implementation
 end.
 {
   $Log$
-  Revision 1.54  2004-10-31 21:45:02  peter
+  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
     * generic tlocation
     * move tlocation to cgutils