Browse Source

* longint to ptrint

peter 21 years ago
parent
commit
7f2e327975
2 changed files with 12 additions and 6 deletions
  1. 6 3
      rtl/inc/mouse.inc
  2. 6 3
      rtl/inc/objects.pp

+ 6 - 3
rtl/inc/mouse.inc

@@ -119,7 +119,7 @@ Procedure GetPendingEvent(Var MouseEvent:TMouseEvent);
 begin
 begin
   MouseEvent:=PendingMouseHead^;
   MouseEvent:=PendingMouseHead^;
   inc(PendingMouseHead);
   inc(PendingMouseHead);
-  if longint(PendingMouseHead)=longint(@PendingMouseEvent)+sizeof(PendingMouseEvent) then
+  if longint(PendingMouseHead)=Ptrint(@PendingMouseEvent)+sizeof(PendingMouseEvent) then
    PendingMouseHead:=@PendingMouseEvent;
    PendingMouseHead:=@PendingMouseEvent;
   dec(PendingMouseEvents);
   dec(PendingMouseEvents);
   if (LastMouseEvent.x<>MouseEvent.x) or
   if (LastMouseEvent.x<>MouseEvent.x) or
@@ -161,7 +161,7 @@ begin
     begin
     begin
     PendingMouseTail^:=MouseEvent;
     PendingMouseTail^:=MouseEvent;
     inc(PendingMouseTail);
     inc(PendingMouseTail);
-    if longint(PendingMouseTail)=longint(@PendingMouseEvent)+sizeof(PendingMouseEvent) then
+    if longint(PendingMouseTail)=Ptrint(@PendingMouseEvent)+sizeof(PendingMouseEvent) then
       PendingMouseTail:=@PendingMouseEvent;
       PendingMouseTail:=@PendingMouseEvent;
     inc(PendingMouseEvents);
     inc(PendingMouseEvents);
     end
     end
@@ -210,7 +210,10 @@ end;
 
 
 {
 {
   $Log$
   $Log$
-  Revision 1.4  2002-09-07 15:07:45  peter
+  Revision 1.5  2004-04-22 20:59:23  peter
+    * longint to ptrint
+
+  Revision 1.4  2002/09/07 15:07:45  peter
     * old logs removed and tabs fixed
     * old logs removed and tabs fixed
 
 
 }
 }

+ 6 - 3
rtl/inc/objects.pp

@@ -972,8 +972,8 @@ TYPE
 CONSTRUCTOR TObject.Init;
 CONSTRUCTOR TObject.Init;
 VAR LinkSize: LongInt; Dummy: DummyObject;
 VAR LinkSize: LongInt; Dummy: DummyObject;
 BEGIN
 BEGIN
-   LinkSize := LongInt(@Dummy.Data)-LongInt(@Dummy);  { Calc VMT link size }
-   FillChar(Pointer(LongInt(@Self)+LinkSize)^,
+   LinkSize := PtrInt(@Dummy.Data)-PtrInt(@Dummy);  { Calc VMT link size }
+   FillChar(Pointer(PtrInt(@Self)+LinkSize)^,
      SizeOf(Self)-LinkSize, #0);                      { Clear data fields }
      SizeOf(Self)-LinkSize, #0);                      { Clear data fields }
 END;
 END;
 
 
@@ -2950,7 +2950,10 @@ BEGIN
 END.
 END.
 {
 {
   $Log$
   $Log$
-  Revision 1.29  2004-03-31 21:49:19  florian
+  Revision 1.30  2004-04-22 20:59:23  peter
+    * longint to ptrint
+
+  Revision 1.29  2004/03/31 21:49:19  florian
     * fixed GetParentFrame for ARM
     * fixed GetParentFrame for ARM
 
 
   Revision 1.28  2004/02/18 21:59:23  peter
   Revision 1.28  2004/02/18 21:59:23  peter