mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-21 18:09:30 +02:00
* Fixed 64-bit compilation warnings (Integer -> PtrUInt)
git-svn-id: trunk@21034 -
This commit is contained in:
parent
0976d0304f
commit
6fd9dc6d32
@ -1527,7 +1527,7 @@ end;
|
||||
|
||||
function ObjData(const x: TRsvpObjHdr): Pointer;
|
||||
begin
|
||||
Result := Pointer(Integer(@x) + SizeOf(x));
|
||||
Result := Pointer(PtrUInt(@x) + SizeOf(x));
|
||||
end;
|
||||
|
||||
function Style_is_Wildcard(p: DWORD): Boolean;
|
||||
|
@ -1890,7 +1890,7 @@ end;
|
||||
|
||||
function DNS_HEADER_FLAGS(pHead: PDNS_HEADER): WORD;
|
||||
begin
|
||||
Result := PWORD(Integer(pHead) + SizeOf(WORD))^;
|
||||
Result := PWORD(@pHead^.Flags)^;
|
||||
end;
|
||||
|
||||
procedure DNS_BYTE_FLIP_HEADER_COUNTS(var pHeader: PDNS_HEADER);
|
||||
@ -1915,17 +1915,17 @@ end;
|
||||
|
||||
function IS_WORD_ALIGNED(P: Pointer): BOOL;
|
||||
begin
|
||||
Result := (Integer(P) and 1) = 0;
|
||||
Result := (PtrUInt(P) and 1) = 0;
|
||||
end;
|
||||
|
||||
function IS_DWORD_ALIGNED(P: Pointer): BOOL;
|
||||
begin
|
||||
Result := (Integer(P) and 3) = 0;
|
||||
Result := (PtrUInt(P) and 3) = 0;
|
||||
end;
|
||||
|
||||
function IS_QWORD_ALIGNED(P: Pointer): BOOL;
|
||||
begin
|
||||
Result := (Integer(P) and 7) = 0;
|
||||
Result := (PtrUInt(P) and 7) = 0;
|
||||
end;
|
||||
|
||||
function DNS_TEXT_RECORD_LENGTH(StringCount: Integer): Integer;
|
||||
|
@ -11935,7 +11935,7 @@ end;
|
||||
|
||||
function RAWINPUT_ALIGN(x: Pointer): Pointer;
|
||||
begin
|
||||
Result := Pointer((Integer(x) + SizeOf(DWORD) - 1) and not (SizeOf(DWORD) - 1));
|
||||
Result := Pointer((PtrUInt(x) + (SizeOf(DWORD) - 1)) and not (SizeOf(DWORD) - 1));
|
||||
end;
|
||||
|
||||
function NEXTRAWINPUTBLOCK(ptr: PRawInput): PRawInput;
|
||||
|
Loading…
Reference in New Issue
Block a user