Skip to content

Commit

Permalink
Fix typo in generic_final_minor_update (#1849)
Browse files Browse the repository at this point in the history
The typo leads to SEGV or missing finalyser calls.
  • Loading branch information
delamonpansie authored and xavierleroy committed Jun 20, 2018
1 parent 4a52bed commit a09e292
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion byterun/finalise.c
Expand Up @@ -314,7 +314,7 @@ static void generic_final_minor_update (struct finalisable * final)
CAMLassert (Is_block (final->table[i].val));
CAMLassert (Is_in_heap_or_young (final->table[i].val));
CAMLassert (Tag_val (final->table[i].val) != Forward_tag);
if(Is_young(final->table[j].val) && Hd_val(final->table[i].val) != 0){
if(Is_young(final->table[i].val) && Hd_val(final->table[i].val) != 0){
/** dead */
to_do_tl->item[k] = final->table[i];
/* The finalisation function is called with unit not with the value */
Expand Down

0 comments on commit a09e292

Please sign in to comment.