mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-17 17:09:09 +02:00
* Fixed comparison.
git-svn-id: trunk@40186 -
This commit is contained in:
parent
30d64cec68
commit
a077e0dd90
@ -734,7 +734,7 @@ End;
|
|||||||
function StackTop: pointer;
|
function StackTop: pointer;
|
||||||
begin
|
begin
|
||||||
{ Avoid wrap to zero on 32-bit }
|
{ Avoid wrap to zero on 32-bit }
|
||||||
if ptruint(StackBottom)+ StackLength > high(ptruint) then
|
if ptruint(StackBottom) > high(ptruint) - StackLength then
|
||||||
result:=pointer(ptruint(high(ptruint)))
|
result:=pointer(ptruint(high(ptruint)))
|
||||||
else
|
else
|
||||||
result:=StackBottom + StackLength;
|
result:=StackBottom + StackLength;
|
||||||
|
Loading…
Reference in New Issue
Block a user