mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-13 11:39:24 +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;
|
function ObjData(const x: TRsvpObjHdr): Pointer;
|
||||||
begin
|
begin
|
||||||
Result := Pointer(Integer(@x) + SizeOf(x));
|
Result := Pointer(PtrUInt(@x) + SizeOf(x));
|
||||||
end;
|
end;
|
||||||
|
|
||||||
function Style_is_Wildcard(p: DWORD): Boolean;
|
function Style_is_Wildcard(p: DWORD): Boolean;
|
||||||
|
@ -1890,7 +1890,7 @@ end;
|
|||||||
|
|
||||||
function DNS_HEADER_FLAGS(pHead: PDNS_HEADER): WORD;
|
function DNS_HEADER_FLAGS(pHead: PDNS_HEADER): WORD;
|
||||||
begin
|
begin
|
||||||
Result := PWORD(Integer(pHead) + SizeOf(WORD))^;
|
Result := PWORD(@pHead^.Flags)^;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure DNS_BYTE_FLIP_HEADER_COUNTS(var pHeader: PDNS_HEADER);
|
procedure DNS_BYTE_FLIP_HEADER_COUNTS(var pHeader: PDNS_HEADER);
|
||||||
@ -1915,17 +1915,17 @@ end;
|
|||||||
|
|
||||||
function IS_WORD_ALIGNED(P: Pointer): BOOL;
|
function IS_WORD_ALIGNED(P: Pointer): BOOL;
|
||||||
begin
|
begin
|
||||||
Result := (Integer(P) and 1) = 0;
|
Result := (PtrUInt(P) and 1) = 0;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
function IS_DWORD_ALIGNED(P: Pointer): BOOL;
|
function IS_DWORD_ALIGNED(P: Pointer): BOOL;
|
||||||
begin
|
begin
|
||||||
Result := (Integer(P) and 3) = 0;
|
Result := (PtrUInt(P) and 3) = 0;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
function IS_QWORD_ALIGNED(P: Pointer): BOOL;
|
function IS_QWORD_ALIGNED(P: Pointer): BOOL;
|
||||||
begin
|
begin
|
||||||
Result := (Integer(P) and 7) = 0;
|
Result := (PtrUInt(P) and 7) = 0;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
function DNS_TEXT_RECORD_LENGTH(StringCount: Integer): Integer;
|
function DNS_TEXT_RECORD_LENGTH(StringCount: Integer): Integer;
|
||||||
|
@ -11935,7 +11935,7 @@ end;
|
|||||||
|
|
||||||
function RAWINPUT_ALIGN(x: Pointer): Pointer;
|
function RAWINPUT_ALIGN(x: Pointer): Pointer;
|
||||||
begin
|
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;
|
end;
|
||||||
|
|
||||||
function NEXTRAWINPUTBLOCK(ptr: PRawInput): PRawInput;
|
function NEXTRAWINPUTBLOCK(ptr: PRawInput): PRawInput;
|
||||||
|
Loading…
Reference in New Issue
Block a user