mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-09 12:11:07 +02:00
* fixed generic stack checking code (the stack pointer is already decreased
before FPC_STACKCHECK is called, so don't subtract the allocated size again when checking) git-svn-id: trunk@12525 -
This commit is contained in:
parent
75cbf8cacd
commit
b7d461d0f0
@ -708,7 +708,10 @@ begin
|
||||
{ Avoid recursive calls when called from the exit routines }
|
||||
if StackError then
|
||||
exit;
|
||||
c := Sptr - (stack_size + STACK_MARGIN);
|
||||
{ don't use sack_size, since the stack pointer has already been
|
||||
decreased when this routine is called
|
||||
}
|
||||
c := Sptr - STACK_MARGIN;
|
||||
if (c <= StackBottom) then
|
||||
begin
|
||||
StackError:=true;
|
||||
|
Loading…
Reference in New Issue
Block a user