浏览代码

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