Преглед изворни кода

* Fixed comparison.

git-svn-id: trunk@40186 -
yury пре 6 година
родитељ
комит
a077e0dd90
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      rtl/inc/system.inc

+ 1 - 1
rtl/inc/system.inc

@@ -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;