1
Fork 0
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:
Jim Blandy 1998-09-05 16:50:40 +00:00
parent 4e6e211987
commit 574f95b63d

View file

@ -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\
{\