浏览代码

* fixed class messages for PowerPC64, due to a wrong typecast

git-svn-id: trunk@1363 -
tom_at_work 20 年之前
父节点
当前提交
0b34b01a6d
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      rtl/inc/objpas.inc

+ 2 - 2
rtl/inc/objpas.inc

@@ -413,9 +413,9 @@
              begin
              begin
                 // See if we have messages at all in this class.
                 // See if we have messages at all in this class.
                 p:=pointer(vmt)+vmtDynamicTable;
                 p:=pointer(vmt)+vmtDynamicTable;
-                If Assigned(p) and (Pdword(p)^<>0) then
+                If assigned(PPointer(p)^) then
                   begin
                   begin
-                     msgtable:=pmsgtable(PtrInt(p^)+4);
+                     msgtable:=pmsgtable(Pointer(p^)+4);
                      count:=pdword(p^)^;
                      count:=pdword(p^)^;
                   end
                   end
                 else
                 else