* Fixed comparison.

git-svn-id: trunk@40186 -
This commit is contained in:
yury 2018-11-02 19:04:26 +00:00
parent 30d64cec68
commit a077e0dd90

View File

@ -734,7 +734,7 @@ End;
function StackTop: pointer;
begin
{ 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)))
else
result:=StackBottom + StackLength;