Well, that was easy! Stack limit now working.

This commit is contained in:
Simon Brooke 2026-03-14 16:58:55 +00:00
parent d1ce893633
commit 7f34601523
4 changed files with 14 additions and 3 deletions

View file

@ -130,7 +130,7 @@ struct cons_pointer make_empty_frame( struct cons_pointer previous ) {
uint32_t depth =
( nilp( previous ) ) ? 0 : ( get_stack_frame( previous ) )->depth + 1;
if ( stack_limit > 0 && stack_limit > depth ) {
if ( stack_limit == 0 || stack_limit > depth ) {
result = in_make_empty_frame( previous, depth );
} else {
result =