Ver Fonte

* fixes for the compilation of unit variants in the i8086 medium memory model

git-svn-id: trunk@25120 -
nickysn há 12 anos atrás
pai
commit
3e0cc1e5f6
1 ficheiros alterados com 2 adições e 2 exclusões
  1. 2 2
      rtl/inc/variants.pp

+ 2 - 2
rtl/inc/variants.pp

@@ -4408,7 +4408,7 @@ begin
         if (PropInfo^.PropProcs and 3)=ptStatic then
         if (PropInfo^.PropProcs and 3)=ptStatic then
           AMethod.Code:=PropInfo^.GetProc
           AMethod.Code:=PropInfo^.GetProc
         else
         else
-          AMethod.Code:=PPointer(Pointer(Instance.ClassType)+PtrUInt(PropInfo^.GetProc))^;
+          AMethod.Code:=PCodePointer(Pointer(Instance.ClassType)+PtrUInt(PropInfo^.GetProc))^;
         AMethod.Data:=Instance;
         AMethod.Data:=Instance;
 
 
         if ((PropInfo^.PropProcs shr 6) and 1)=0 then
         if ((PropInfo^.PropProcs shr 6) and 1)=0 then
@@ -4435,7 +4435,7 @@ begin
         if ((PropInfo^.PropProcs shr 2) and 3)=ptStatic then
         if ((PropInfo^.PropProcs shr 2) and 3)=ptStatic then
           AMethod.Code:=PropInfo^.SetProc
           AMethod.Code:=PropInfo^.SetProc
         else
         else
-          AMethod.Code:=PPointer(Pointer(Instance.ClassType)+PtrUInt(PropInfo^.SetProc))^;
+          AMethod.Code:=PCodePointer(Pointer(Instance.ClassType)+PtrUInt(PropInfo^.SetProc))^;
         AMethod.Data:=Instance;
         AMethod.Data:=Instance;
 
 
 	      if ((PropInfo^.PropProcs shr 6) and 1)=0 then
 	      if ((PropInfo^.PropProcs shr 6) and 1)=0 then