Third time's a charm with stack remaining checker

This commit is contained in:
Justine Tunney 2022-07-14 07:38:44 -07:00
parent 28b9d9f781
commit 0a589add41

View file

@ -126,7 +126,7 @@ extern char ape_stack_align[] __attribute__((__weak__));
*/
#define HaveStackMemory(n) \
(IsTiny() || \
(intptr_t)__builtin_frame_address(0) >= GetStackAddr() + PAGESIZE * (n))
(intptr_t)__builtin_frame_address(0) >= GetStackAddr() + PAGESIZE + (n))
COSMOPOLITAN_C_END_
#endif /* GNU ELF */