Browse Source

* fixed more 64 bit issues (by Vincents Snijders)

git-svn-id: trunk@1092 -
florian 20 years ago
parent
commit
b1b0ffc1ec
1 changed files with 10 additions and 1 deletions
  1. 10 1
      rtl/objpas/typinfo.pp

+ 10 - 1
rtl/objpas/typinfo.pp

@@ -725,6 +725,10 @@ begin
   Signed := false;
   Signed := false;
   DataSize := 4;
   DataSize := 4;
   case TypeInfo^.Kind of
   case TypeInfo^.Kind of
+{$ifdef cpu64}
+    tkClass:
+      DataSize:=8;
+{$endif cpu64}
     tkChar, tkBool:
     tkChar, tkBool:
       DataSize:=1;
       DataSize:=1;
     tkWChar:
     tkWChar:
@@ -811,7 +815,12 @@ var
   DataSize: Integer;
   DataSize: Integer;
   AMethod : TMethod;
   AMethod : TMethod;
 begin
 begin
-  if PropInfo^.PropType^.Kind in [tkInt64,tkQword] then
+  if PropInfo^.PropType^.Kind in [tkInt64,tkQword
+  { why do we have to handle classes here, see also below? (FK) }
+{$ifdef cpu64}
+    ,tkClass
+{$endif cpu64}
+    ] then
     DataSize := 8
     DataSize := 8
   else
   else
     DataSize := 4;
     DataSize := 4;