mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-17 23:59:07 +02:00
* x86_64 fix: Conversion if integer to pointer
git-svn-id: trunk@6394 -
This commit is contained in:
parent
42eaa8b09a
commit
7526717aef
@ -282,7 +282,7 @@ var
|
|||||||
begin
|
begin
|
||||||
If not Assigned(Breaks) then
|
If not Assigned(Breaks) then
|
||||||
exit;
|
exit;
|
||||||
Result := Breaks.IndexOf(Pointer(Index)) <> -1;
|
Result := Breaks.IndexOf(Pointer(PtrInt(Index))) <> -1;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
Function NextBreakable(Breaks : TList; Index : Integer) : Integer;
|
Function NextBreakable(Breaks : TList; Index : Integer) : Integer;
|
||||||
@ -292,9 +292,9 @@ var
|
|||||||
(not Breakable(Breaks,Index))
|
(not Breakable(Breaks,Index))
|
||||||
then
|
then
|
||||||
exit;
|
exit;
|
||||||
If Breaks.IndexOf(Pointer(Index)) >= Breaks.Count - 1 then
|
If Breaks.IndexOf(Pointer(PtrInt(Index))) >= Breaks.Count - 1 then
|
||||||
exit;
|
exit;
|
||||||
Result := Longint(Breaks[Breaks.IndexOf(Pointer(Index)) + 1]);
|
Result := Longint(Breaks[Breaks.IndexOf(Pointer(PtrInt(Index))) + 1]);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
Function GetBreakablePoints(const Source : String) : TList;
|
Function GetBreakablePoints(const Source : String) : TList;
|
||||||
@ -309,7 +309,7 @@ var
|
|||||||
If not Breakable(Result, I) then
|
If not Breakable(Result, I) then
|
||||||
Result.Add(Pointer(I));
|
Result.Add(Pointer(I));
|
||||||
If not Breakable(Result, Length(Source)) then
|
If not Breakable(Result, Length(Source)) then
|
||||||
Result.Add(Pointer(Length(Source)));
|
Result.Add(Pointer(PtrInt(Length(Source))));
|
||||||
If not Breakable(Result, 0) then
|
If not Breakable(Result, 0) then
|
||||||
Result.Insert(0,nil);
|
Result.Insert(0,nil);
|
||||||
end;
|
end;
|
||||||
@ -1404,6 +1404,9 @@ end;
|
|||||||
{ =============================================================================
|
{ =============================================================================
|
||||||
|
|
||||||
$Log$
|
$Log$
|
||||||
|
Revision 1.14 2004/12/19 19:26:05 marc
|
||||||
|
* x86_64 fix: Conversion if integer to pointer
|
||||||
|
|
||||||
Revision 1.13 2004/08/10 22:09:02 mattias
|
Revision 1.13 2004/08/10 22:09:02 mattias
|
||||||
fixed uninitialised LogFont
|
fixed uninitialised LogFont
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user