This repository has been archived by the owner on Jul 16, 2020. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Previously align_offset(STACK_ALIGNMENT) was substracted, which is wrong, because the documentation states: > Computes the offset that needs to be applied to the pointer in > order to make it aligned. This patch first substracts STACK_ALIGNMENT and then adds align_offset(STACK_ALIGNMENT), if the stack was not yet aligned Also calculating the top with .add(stack.len() - 1) so the stack pointer points initially to a valid memory address.
- Loading branch information