[m-rev.] diff: fix an incorrect check
Zoltan Somogyi
zoltan.somogyi at runbox.com
Tue Nov 3 00:18:38 AEDT 2026
On Tue, 3 Nov 2026 00:15:52 +1100, Julien Fischer <jfischer at opturion.com> wrote:
> - if (MR_stack_margin_size_words >= (sizeof(MR_Word) * MR_detstack_size)) {
> + if ((MR_stack_margin_size_words * sizeof(MR_Word)) >= MR_detstack_size) {
> MR_fatal_error("MR_init_memory: stack margin size far too big");
This strongly suggests that MR_detstack_size should be renamed
to include the unit in its name.
Zoltan.
More information about the reviews
mailing list