mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-04-30 03:40:34 +02:00
* stackchk.h (SCM_STACK_OVERFLOW_P): Change definition to avoid
signed/unsigned comparisons.
This commit is contained in:
parent
4e6e211987
commit
574f95b63d
1 changed files with 2 additions and 2 deletions
|
@ -65,10 +65,10 @@
|
|||
#ifdef STACK_CHECKING
|
||||
# ifdef SCM_STACK_GROWS_UP
|
||||
# define SCM_STACK_OVERFLOW_P(s)\
|
||||
(s - SCM_BASE (scm_rootcont) > SCM_STACK_LIMIT * sizeof (SCM_STACKITEM))
|
||||
(s > ((SCM_STACKITEM *) SCM_BASE (scm_rootcont) + SCM_STACK_LIMIT))
|
||||
# else
|
||||
# define SCM_STACK_OVERFLOW_P(s)\
|
||||
(SCM_BASE (scm_rootcont) - s > SCM_STACK_LIMIT * sizeof (SCM_STACKITEM))
|
||||
(s < ((SCM_STACKITEM *) SCM_BASE (scm_rootcont) - SCM_STACK_LIMIT))
|
||||
# endif
|
||||
# define SCM_CHECK_STACK\
|
||||
{\
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue